How do I run git log to see changes only for a specific branch?

前端 未结 6 942
不思量自难忘°
不思量自难忘° 2020-12-04 04:30

I have a local branch tracking the remote/master branch. After running git-pull and git-log, the log will show all commits in the remote tracking b

6条回答
  •  情深已故
    2020-12-04 05:13

    The problem I was having, which I think is similar to this, is that master was too far ahead of my branch point for the history to be useful. (Navigating to the branch point would take too long.)

    After some trial and error, this gave me roughly what I wanted:

    git log --graph --decorate --oneline --all ^master^!
    

提交回复
热议问题