代码在gitHub上托管,每次git pull完后,用git branch -a都可以看到一堆remotes/origin/pr/*分支: 可以通过两种方式去除: 1,修改git的config文件找到里面的: fetch = +refs/pull/*/head:refs/remotes/origin/pr/*删除. 不过删除后就不能直接check pr分支了,参考:https://help.github.com/articles/checking-out-pull-requests-locall…