Skip to content

Instantly share code, notes, and snippets.

@liujingyu
Created June 17, 2017 09:01
Show Gist options
  • Save liujingyu/d643a56f699691448452bd265c221fb9 to your computer and use it in GitHub Desktop.
Save liujingyu/d643a56f699691448452bd265c221fb9 to your computer and use it in GitHub Desktop.

Git prune

大家帮忙想想办法让已经失效的远程 branch-name 在执行 git branch -a 的时候不再展示吧 清理远程分支,把本地不存在的远程分支删除

git remote prune origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment