How do you organise multiple git repositories, so that all of them are backed up together?

前端 未结 6 1385
梦毁少年i
梦毁少年i 2020-12-22 14:55

With SVN, I had a single big repository I kept on a server, and checked-out on a few machines. This was a pretty good backup system, and allowed me easily work on any of the

6条回答
  •  佛祖请我去吃肉
    2020-12-22 15:26

    What about using mr for managing your multiple Git repos at once:

    The mr(1) command can checkout, update, or perform other actions on a set of repositories as if they were one combined respository. It supports any combination of subversion, git, cvs, mercurial, bzr, darcs, cvs, vcsh, fossil and veracity repositories, and support for other revision control systems can easily be added. [...]

    It is extremely configurable via simple shell scripting. Some examples of things it can do include:

    [...]

    • When updating a git repository, pull from two different upstreams and merge the two together.
    • Run several repository updates in parallel, greatly speeding up the update process.
    • Remember actions that failed due to a laptop being offline, so they can be retried when it comes back online.

提交回复
热议问题