Showing commits made directly to a branch, ignoring merges in Git

前端 未结 3 1420
囚心锁ツ
囚心锁ツ 2020-12-22 21:49

When using git, is there a way to show commits made to a branch, while ignoring all commits that were brought in by merging?

I\'m trying to review the code changes

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 22:02

    A very hackish way:

    git log --graph --oneline --no-merges thebranch|grep '^\*'

提交回复
热议问题