In Git, list names of branches with unpushed commits

后端 未结 4 1102
深忆病人
深忆病人 2021-01-30 13:02

Given a project with several local branches, each tracking some remote branch, is there a command that lists all branches that have unpushed commits? (That is, even if none of t

4条回答
  •  一向
    一向 (楼主)
    2021-01-30 13:28

    You can also see what branches are not yet merged to master

    git checkout master
    

    and then

    git branch --no-merged
    

提交回复
热议问题