Git : List all unmerged changes in git

后端 未结 3 766
余生分开走
余生分开走 2020-12-22 16:37

Creating a branch for various topics, and not regularly deleting them when I don\'t need them any more, I have now ended up with about 50 branches ;)

I tried deletin

相关标签:
3条回答
  • 2020-12-22 17:16

    To list branches with commits not merged into master:

    git branch --no-merged master
    

    To list the relevant commits:

    git cherry -v master <branch>
    
    0 讨论(0)
  • 2020-12-22 17:16

    I came across this question when I was trying to remember the syntax of...

    git log <branch> --not master --stat
    

    This will show commits to <branch> that have not been merged to master. The --stat will include the files that were changed with the commits. You can also use this to compare any two branches by replacing master with a different branch name.

    0 讨论(0)
  • 2020-12-22 17:25

    It is quite easy to get an overview of your branches with gitk.

    0 讨论(0)
提交回复
热议问题