【发布时间】:2015-07-29 21:35:40
【问题描述】:
当前设置:
$ git branch -a
* master
feature
remotes/origin/master
remotes/origin/feature
feature 分支合并后,我想删除本地分支feature 和远程跟踪分支origin/feature。在这种情况下,服务器上的远程分支已经被删除。
我需要的命令是:
$ git branch -d features
$ git branch -d -r origin/features
有没有办法在删除相应的本地分支时自动触发第二条命令?有任何git-config 设置吗?
【问题讨论】:
标签: git branch remote-branch