How To Find a Git Commit ID in Branches and Merges

Author: , February 7th, 2020

First, get on the branch that you know already has the commits you are looking for:

Copy-and-paste the commit(s) you want:

~or~

Optionally, display the code changes for a visual confirmation:

Finally, extract the list of branches that contain the desired commits:

Example:

How To Show Filenames With git log

Author: , June 3rd, 2019

To display the filenames included in each commit, just add the –name-only argument to git log:

How To View the Latest GIT Log Entry

Author: , November 14th, 2012

git log -1 git log -1 –oneline git log -1 –pretty=%B Add the -p option to include the actual code diff!