如何备份git服务器? [英] How to backup git server?

查看:640
本文介绍了如何备份git服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何备份git服务器?
当git服务器坏掉时,我该如何将我的本地资源库推送到新的git服务器上?

解决方案

使用:





这样: / p>



您将为第一次备份创建一个完整的包:

  $ git包创建/ tmp / foo-all --all 


How to backup git server? When git server is broken, How can I push my local repository to a new git server?

解决方案

You can use:

git bundle

That way:

  • you have only one file to move to a backup server
  • you actually can use this file as an "origin" repo from which you can pull/push data like a regular Git repo.

You will for the first backup create a full bundle:

$ git bundle create /tmp/foo-all --all

这篇关于如何备份git服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆