najamelan / git-backup

Backup up local git repositories using git bundle with settings from git config
57 stars 8 forks source link

Backup only local refs? #2

Open brianjmurrell opened 2 months ago

brianjmurrell commented 2 months ago

Is it at all practical for your git-backup tool to only back up local (i.e. unpushed) refs such that one can simply clone a repo and then restore a git-backup backup on top of that to get back to a working state?

This could be a pre-system backup step so that one is not backing up entire git repos that exist elsewhere like on GitHub.

najamelan commented 2 months ago

Hi, this tool isn't really maintained anymore. Feel free to experiment. You can do it surely with git bundle but you'll have to write a script that determines which refs are "local".