I just installed (as opposed to update) GitHub for Windows 2.0 and for the life of me I cannot find how to use it with non-GitHub repositories. In the past I have done this without issues using this guide. However with version 2.0 the layout has changed and I cannot find a UI to clone a repo that is not from GitHub. I guess I have to drop to the command line but I have no idea how to use git that way.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
As you suggested, you can clone the repository with Git on the command line. To do so you can execute the following steps:
- Start the Git shell (Start menu->GitHub, Inc->Git Shell on Windows 7, I'm not familiar with Windows 8 but I think it will show up when you type "Git Shell" on the start screen)
- Make sure you are in the GitHub directory (C:\users\\Documents\GitHub). Otherwise use the
cd
-command to navigate there. - Use the clone command
git clone user@domain.com:/path/repository.git
with the clone-url for the project you want to add. (More information about cloning) - Start GitHub for Windows and go to
tools and options->Options
- Click
Scan for repositories
, if everything went right your cloned project shows up. - Make sure it is selected and click
Add