相关疑难解决方法(0)

如何更新git clone --mirror?

我创建了一个git存储库来镜像一个实时站点(这是一个非裸的git存储库):

git clone --mirror ssh://user@example.com/path/to/repo
Run Code Online (Sandbox Code Playgroud)

现在,要保持此镜像克隆更新其远程源的所有更改,我必须使用哪个或哪些命令?

我想保持一切更新:提交,引用,钩子,分支等.

谢谢!

git mirror git-fetch git-clone git-remote

133
推荐指数
3
解决办法
14万
查看次数

标签 统计

git ×1

git-clone ×1

git-fetch ×1

git-remote ×1

mirror ×1