完全备份 git repo? [英] Fully backup a git repo?

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

问题描述

有没有一种简单的方法可以备份整个 git 存储库,包括所有分支和标签?

Is there a simple way to backup an entire git repo including all branches and tags?

推荐答案

克隆一个怎么样?

git clone --mirror other/repo.git

每个存储库都是其远程的备份.

Every repository is a backup of its remote.

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

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