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.