Incremental backups with git bundle, for all branches

后端 未结 4 1156
春和景丽
春和景丽 2020-12-05 05:20

What is the easiest way to do incremental backups of a git repository with git bundle?

If I just wanted to backup a single branch, I could do something

4条回答
  •  难免孤独
    2020-12-05 05:56

    You could do

    git clone --mirror  my-backup.git
    

    It will create a bare repo with all refs.

    Then you could periodically do git push --mirror .

提交回复
热议问题