I have a release branch named release/X.X.X.X
which contains all feature branches I want to deploy to production. The release branch is made on top of master<
The question title admits a slightly different answer, which could be useful to some people. A simple way to compare two branches by commit title only is to dump commit titles from each branch to a separate text file, and open these two files in a diff viewer:
git --no-pager log --pretty=format:%s master > log_master.txt
git --no-pager log --pretty=format:%s other > log_other.txt
meld log_master.txt log_other.txt
We first dump commit subjects from branch master
to the file log_master.txt
, then commit subjects from branch other
to the file log_other.txt
, and open them in the visual diff viewer meld (one alternative is kdiff3).