I have a master
and a development
branch, both pushed to GitHub. I\'ve clone
d, pull
ed, and fetch
ed, but I re
Better late than never, but here is the best way to do this:
mkdir repo
cd repo
git clone --bare path/to/repo.git .git
git config --unset core.bare
git reset --hard
At this point you have a complete copy of the remote repo with all of it's branches (verify with git branch
). You can use --mirror
instead of --bare
if your remote repo has remotes of its own.