我将一个文件夹切入了局部存储库中克隆 - 克隆失败,文件夹消失了。我粘贴的文件夹永远消失了吗?
我想将本地代码放入GitHub存储库中。
我在github上创建了一个存储库,并尝试用HTTPS克隆。
克隆人花了一点时间,但是该文件夹是在我的笔记本电脑上创建的,因此我决定将本地代码剪切/粘贴到本地回购文件夹中。
好吧,克隆最终失败了,回购文件夹也消失了,以及其所有内容。
我添加到本地存储库的文件夹也消失了。
我什至找不到回收箱。它永远消失了吗?
I wanted to put my local code into a GitHub repository.
I created a repo on GitHub and tried cloning with HTTPS.
The clone was taking a moment but the folder was created on my laptop so I decided to cut/paste my local code into the local repo folder.
Well, the clone ended up failing and the repo folder just disappeared, along with all of its contents.
The folder I added to the local repo also disappeared.
I can't even find it in the recycling bin. Is it gone forever?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下次:
gh/code> gh
,github cli以这种方式,没有克隆,没有危险的代码迁移。
创建远程存储库的命令为(a gh auth login ):
)
gh repo create
。
Next time:
gh
, the GitHub CLIThat way, no clone, no hazardous code migration.
The command to create the remote repository is (after a gh auth login):
gh repo create
.