Git: How do I list local branches that are tracking remote branches that no longer exist?

前端 未结 4 608
無奈伤痛
無奈伤痛 2020-12-16 14:32

How can I list any local branches that appear (as per .git/config) to be tracking remote branches that no longer exist? Remote branches are on GitHub in this ca

4条回答
  •  情深已故
    2020-12-16 14:48

    LANG=en git branch --format='%(if:equals=gone)%(upstream:track,nobracket)%(then)%(refname:short)%(end)' | grep '.'
    

提交回复
热议问题