简体   繁体   English

如何在git中签出克隆存储库

[英]How to checkout a clone repository in git

I have created a git repository using the windows GitHub client. 我已经使用Windows GitHub客户端创建了一个git存储库。

I want to create a new check out of that repository on my harddrive. 我想在我的硬盘上从该存储库中创建一个新的签出。 I want to be able to do a commit from one repository, and do and pull from the other to make sure that commit didn't miss anything or break anything. 我希望能够从一个存储库中进行提交,并从另一个存储库中进行提交和拉出,以确保该提交不会丢失任何东西或破坏任何东西。

But using github client I only have the options of Add, Create, and Clone. 但是使用github客户端,我只有Add,Create和Clone选项。

None of these seem to check out a repository from a URL. 这些似乎都没有从URL检出存储库。 Is this not possible? 这不可能吗?

In fact it seems like Add and Create are the exact same thing... 实际上,添加和创建似乎完全一样。

Clone = Init + Add Remote (using URL) + Pull . 克隆 = 初始化 + 添加远程 (使用URL)+ 拉取

In your case it looks like you did only Init . 就您而言,您似乎只执行了Init

If it's true than now you need just to Add Remote and Pull . 如果是现在,那么您只需要添加RemotePull即可

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM