w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Does git have an option to show the commits to be merged before performing the merge?

You can use revision range double-dot .. syntax to do this:

git log --oneline --graph

The output will be all commits in <branch-to-be-merged> that aren't in <branch-to-merge-into>.

You can learn more about this and other revision range syntaxes in the Commit Ranges section of the FREE online Pro Git book.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.