扫码关注官方订阅号
删除远程分支失败,该怎么删除远程分支?
那不是写着,远程服务器上没有 "new" 这个分支么? 是不是已经别别人删了
删除本地跟踪
#Deleting a local remote-tracking branch: git branch --delete --remotes <remote>/<branch> git branch -dr <remote>/<branch> # Shorter
玩git推荐你读两个人的博客,一个廖雪峰廖雪峰git教程
第二个是阮一峰,阮一峰git教程
说明这个分支对应的远程分支是 stale 状态,同步本地版本库,命令:git remote update origin --prunegit pull -p 我一般用这个但是本地得手动删除分支。
git remote update origin --prune
git pull -p
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
那不是写着,远程服务器上没有 "new" 这个分支么? 是不是已经别别人删了
删除本地跟踪
玩git推荐你读两个人的博客,一个廖雪峰廖雪峰git教程
第二个是阮一峰,阮一峰git教程
说明这个分支对应的远程分支是 stale 状态,同步本地版本库,命令:
git remote update origin --prunegit pull -p我一般用这个但是本地得手动删除分支。