[英]Git - update local branches
我试图了解git remote prune origin
和git remote update origin --prune
之间的区别? 他们都根据远程更新所有本地分支吗? 根据远程添加/删除本地分支?
git remote update --prune
获取远程跟踪分支的更新,并删除(修剪)远程不再存在的任何内容。
git remote prune
不获取更新,它只修剪。
两者都不会触及本地分支机构,尽管它们可能会修剪标签。
有关更多信息,请参阅git-fetch 中的修剪。
git remote update origin --prune
更新(获取)然后修剪过时的 refs。
git remote prune origin
只是修剪陈旧的参考文献。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.