我想删除本地存储库中不存在的所有远程分支。
我试过命令:
git push --prune origin但是我的git抱怨了以下错误:
error: unknown option `prune'
usage: git push [<options>] [<repository> [<refspec>...]]
-v, --verbose be more verbose
-q, --quiet be more quiet
--repo <repository> repository
--all push all refs
--mirror mirror all refs
--delete delete refs
--tags push tags (can't be used with --all or --mirror)
-n, --dry-run dry run
--porcelain machine-readable output
-f, --force force updates
--thin use thin pack
--receive-pack <receive-pack>
receive pack program
--exec <receive-pack>
receive pack program
-u, --set-upstream set upstream for git pull/status
--progress force progress reporting为什么我的git没有--prune选项??
发布于 2013-01-08 12:22:52
--prune选项在1.7.10版中引入到git中。您可能只是安装了一个旧版本。
作为参考,将1.7.9文档与1.7.10文档进行比较。
https://stackoverflow.com/questions/14214822
复制相似问题