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.
How to use GitHub for Windows 2.0 with non-GitHub repositories
Asked Answered
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 [email protected]:/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
© 2022 - 2024 — McMap. All rights reserved.