首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >不“--修剪”选项

不“--修剪”选项
EN

Stack Overflow用户
提问于 2013-01-08 12:20:08
回答 1查看 866关注 0票数 0

我想删除本地存储库中不存在的所有远程分支

我试过命令:

代码语言:javascript
运行
复制
git push --prune origin

但是我的git抱怨了以下错误:

代码语言:javascript
运行
复制
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选项??

EN

回答 1

Stack Overflow用户

发布于 2013-01-08 12:22:52

--prune选项在1.7.10版中引入到git中。您可能只是安装了一个旧版本。

作为参考,将1.7.9文档与1.7.10文档进行比较。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14214822

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档