如何更新git clone --mirror? [英] How to update a git clone --mirror?

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

问题描述

我创建了一个git仓库来镜像一个活的网站(这是一个非纯粹的git仓库):

  git clone --mirror ssh://user@example.com/path/to/repo 

现在,以保持这个镜像克隆更新,从它的远程起源的所有变化,我必须使用哪一个命令?



我想保持一切更新:提交,参考,钩,分支等

谢谢!

解决方案

这是您需要在镜像上执行的命令:

  git远程更新


I have created a git repository to mirror a live site (which is a non-bare git repository):

git clone --mirror ssh://user@example.com/path/to/repo

Now, to keep this mirror clone updated with all changes from its remote origin, which command or commands I must use?

I'd like to keep everything updated: commits, refs, hooks, branches, etc.

Thanks!

解决方案

This is the command that you need to execute on the mirror:

git remote update

这篇关于如何更新git clone --mirror?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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