I have great success with git push --mirror to make backups unfilled with repos. But after searching in SO and elsewhere, I cannot find a way to localize locally using all branches. I do not want to use git clone , since I do not want my local repo to know about the bare repo. If I use git pull , it only drops the HEAD branch.
Divination:
git pull /data/Dropbox/backup/that_stuff.git *
I’m not going anywhere, of course.
How to get a complete repo with all branches back? I understand that maybe I would just copy the bare repo to my .git directory, but that seems like a bad idea.
git pull
Dan rosenstark
source share