In Git, list names of branches with unpushed commits

后端 未结 4 1111
深忆病人
深忆病人 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:24

    The --no-walk option to log seems to do a better job of what I need than --simplify-by-decoration. My full command is:

    git log --branches --not --remotes --no-walk --decorate --oneline

    ...which I've aliased to unpushed.

提交回复
热议问题