ncd*_*cdc 6 git synchronization mirror
我用克隆了一个git repo git clone --mirror,我想让镜子保持最新状态.到目前为止,我一直在使用git fetch --all,但我注意到在原始仓库中删除的分支不会在镜像仓库中删除.我看过如何更新git clone --mirror?但我尝试使用git remote update似乎不起作用 - 在原始仓库中删除的分支仍然在镜像仓库中可见.
git clone --mirror
git fetch --all
git remote update
And*_*ndy 9
使用git remote prune remoteName删除远程分支机构.
git remote prune remoteName
您还可以添加--prune标签git remote update
--prune
归档时间:
15 年 前
查看次数:
4497 次
最近记录:
7 年,1 月 前