git log first-branch..second-branch – “This will display all commits contained in second-branch that aren’t in the first-branch branch.” (http://rypress.com/tutorials/git/rewriting-history).

git log -n 4 – “The -n 4 parameter tells Git to show only the last four commits from the current HEAD” (http://rypress.com/tutorials/git/rewriting-history).

Advertisements