git rev-list [options] <commit> …
|--oneline||Display commits as a single line with their title.|
List Commits in master but not in origin / master
git rev-list --oneline master ^origin/master
Git rev-list will list commits in one branch that are not in another branch. It is a great tool when you’re trying to figure out if code has been merged into a branch or not.
- Using the
--onelineoption will display the title of each commit.
^operator excludes commits in the specified branch from the list.
- You can pass more than two branches if you want. For example,
git rev-list foo bar ^bazlists commits in foo and bar, but not baz.
Table Of Contents
6 Git diff
19 git clean
45 Git remote
47 git patch
57 Git rerer
59 git tagging
61 diff tree