Re:Tell HN: GitHub will delete your private repo if you lose...
by josephg on Tuesday January 31, 2023 @05:39PM
(#34603384)
I hear all that, but --bare is necessary in this case because git (by default) won't let you push to a non-bare filesystem branch:
[ Parent
| on HN ]
Re:Tell HN: GitHub will delete your private repo if you lose...
by westurner on Tuesday January 31, 2023 @06:00PM
(#34603593)
git clone --mirror
git clone --bare
git push --mirror
git push --all
"Is `git push --mirror` sufficient for backing up my repository?"
https://stackoverflow.com/questions/3333102/is-git-push-mirr... :> So it's usually best to use --mirror for one time copies, and just use normal push (maybe with --all) for normal uses.
git push: https://git-scm.com/docs/git-push
git clone: https://git-scm.com/docs/git-clone