Skip to main content
1 of 8
rashok
  • 13.2k
  • 17
  • 90
  • 101

Identify the commit short hash

# git log --pretty=oneline --abbrev-commit
abcd1234 Fix issue C
cdababcd Fix issue B
deab3412 Fix issue A
....

If you want to squash (merge) last two commit

# git rebase -i deab3412 

This opens up an editor for merging.

rashok
  • 13.2k
  • 17
  • 90
  • 101