Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找 git 版本 1.7.4 中不可用的命令,但我无法升级 git 客户端。
那么,是否有任何命令相当于
git push --prune
prune
<name>
remotes/<name>
这个想法是列出所有远程分支(git branch -r),如果没有同名的本地分支,则git push origin :remoteBranchName(在远程删除它)
git branch -r
git push origin :remoteBranchName