How to change the cloning folder of a specific git? My default storage directory is here
C:\\Users\\myPC\\Documents\\GitHub
Bu
Another option that I've tried is to use the "Create repo" command to create an (empty) repository in the folder of your choice, and then hook it up to Github by:
Why Github doesn't make this easier, I do not know. Two years after this question was posted, and it's still a hassle. It's nice to have a default storage directory, but it's also nice to have a "Where do you want to save this?" option.
Finally, if you do clone a repo into the wrong place, and want to move it somewhere else:
This might actually be the easiest option for getting the repo where you want it.
Just change the working directory in git bash by the cd
command.
Once that is done you can check if the directory you want to download/clone your git repo pwd
command. Now you can clone the repo into the desired folder.
As usual use git clone
to clone the Repository.
Hope this helps.
In "GitHub for Windows" first go to Tools-->Options Here select your folder in "default storage directory". Now in GitHub if you click on "Clone in Desktop" button then it will clone in selected folder
I've downloaded recently GitHub for Windows and it didn't come with option Add a local repository
.
I had to clone and delete the folder in Windows Explorer.
The program gives and error for this repository and the option to locate the new folder or remove.
Locate the folder to which one that you want.
The latest GitHub desktop client (3.3.4.0) prompts for a local directory to clone the repo to. This was when cloning my own repo from github.com to local.
After you have manually cloned the repository with git clone
, you can manually Add a local repository
to Github for Windows (I can't take a screenshot right now because I'm on another machine, but it should be relatively easy to find).
I honestly don't know, though, if this will then have the full set of features (i.e. if GhfW recognizes it as a Github clone), or if it will have the reduced "regular" set for repositories in general.
As always: Try it and see! :D