Skip to content

Instantly share code, notes, and snippets.

@mizanRahman
Created September 22, 2015 04:08
Show Gist options
  • Select an option

  • Save mizanRahman/42a24836a56e93b16581 to your computer and use it in GitHub Desktop.

Select an option

Save mizanRahman/42a24836a56e93b16581 to your computer and use it in GitHub Desktop.

To view different commits between current branch and another branch

git cherry <another-branch>

output:

  • 492508acab7b454eee8b805f8ba906056eede0ff
  • 5ceb5a9077ddb9e78b1e8f24bfc70e674c627949
  • b4459544c000f4d51d1ec23f279d9cdb19c1d32b
  • b6ce3b78e938644a293b2dd2a15b2fecb1b54cd9

to view oneline log diffs between two branches

git log --oneline develop origin/develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment