Reputation: 3982
I often use git from Terminal on Mac to download some repositories and then use it.
When I use this command:
git clone git://git repository URL
repositories are downloaded in my Start folder (name account folder e.g. Matthew, if the name of my Mac account is Matthew).
I'd like to change this folder where repositories are downloaded.
How can I do this when I download a new repo?
Thanks,
Matthew
Upvotes: 2
Views: 13275
Reputation: 9279
Git places the cloned repository in a newly created directory in the path you are currently residing (check with pwd
). If you cd
to a different path, the directory will be placed there.
Alternatively, you can specify a directory as part of the git clone
command. For example:
git clone git://<git repo url> /path/to/cloned/repo
See git help clone
.
Upvotes: 7