Used git clone [url]
to clone an open source project but it cloned to the
C:\Documents and Setings\$USER\project
What I wanted to do is clone the project to C:\project
. I don't want to have duplicate project clones on my local machine.
How do I go about moving it to that location or deleting the existing repository(hopefully that's a correct term) and cloning it again?
I assume after deleting I should use something like the following to clone it to the desired location?
$ git clone [url] C:\project
If you are in the directory you want the contents of the git repository dumped to, run: git clone [email protected]:origin . The "." at the end specifies the current folder as the checkout folder. Save this answer.
On GitHub.com, navigate to the main page of the repository. Under your repository name, click Settings. Under Danger Zone, click Delete this repository.
Browse to the directory in the repository and branch that you want to delete. In the top-right corner, click "…", and then Delete directory.
Go to the current directory where you want the cloned directory to be added. To do this, input cd and add your folder location. You can add the folder location by dragging the folder to Git bash. Click on “Clone or download” and copy the URL.
Just move it :)
command line :
move "C:\Documents and Setings\$USER\project" C:\project
or just drag the folder in explorer.
Git won't care where it is - all the metadata for the repository is inside a folder called .git
inside your project folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With