Course Tonight

Course Tonight

Did You Know?

Docy turns out that context is a key part of learning.

Chapter 15: Rev-List

Estimated reading: 1 minute 5 views
Parameter Details
–oneline Display commits as a single line with their title.

Section 15.1: List Commits in master but not in origin/master

To list commits in the master branch that are not in the origin/master branch, use the following command:

git rev-list --oneline master ^origin/master
  • The git rev-list command lists commits in one branch that are not in another branch.
  • The --oneline option displays the title of each commit.
  • The ^ operator excludes commits in the specified branch from the list.
  • You can pass more than two branches if needed. For example, git rev-list foo bar ^baz lists commits in foo and bar, but not baz.

Leave a Comment

Share this Doc

Chapter 15: Rev-List

Or copy link

CONTENTS