Reputation: 58097
I've got a git repo set up on my iMac and I'd like to download it to my MacBook so I can work on it there. How do I do that?
Upvotes: 3
Views: 6647
Reputation: 1225
In Mac machine: Goto required folder using terminal.
Open terminal
type cd and drag and drop folder on terminal.
you are in same folder where you want to download
use command:
cd <folder path of local machine>
git clone <url>
eg: Mac-mini: macuser$ cd /Users/macuser/Desktop/GIT_PROJ
Mac-mini:GIT_PROJ macuser$ git clone https://abcd@bitbucket.org/abcd/sample.git
it will download the Repository to you local machine.
Upvotes: 0
Reputation: 527378
Git is self-contained - simply copying the contents of the repository would work fine.
If you have SSH access to the machine it's currently on, you could also simply use git clone
.
Upvotes: 0
Reputation: 14577
If it's accessible just use:
git clone
Otherwise just copy the .git folder by hand. That should be sufficient.
Upvotes: 0
Reputation: 175705
You can git clone
it like any git repository. If you have git-daemon setup, it's:
git clone git://your-imac/repoName
If not, you can use ssh:
git clone username@your-imac:/path/to/your/repo
Upvotes: 8