WonderLand
WonderLand

Reputation: 5664

GIT (CLI) - Get ( only ) list of commit that differs between two branch

I can find many similar question but none seems to be exactly what I need:

Basically I want to crosscheck by cli if something is missed on master branch in comparison to production branch and I want to do it programmatically so by script (bash).

I'm looking for a command line, similar to git log master..staging but with a more concise output.

SOLUTION:

git --no-pager log --oneline --decorate --merges master..staging

phpstorm prospective

Upvotes: 1

Views: 63

Answers (2)

SzG
SzG

Reputation: 12609

My favourite formatting is

git log --oneline --decorate B..A

Upvotes: 4

CB Bailey
CB Bailey

Reputation: 791361

git log --oneline master..staging

If you're scripting and just want the commit ids, do:

git rev-parse master..staging

Upvotes: 3

Related Questions