As with many places we like to squash our commits, within our feature branches before merging to master.
To do this we frequently squash commits with an interactive rebase (git rebase -i HEAD~10
) before merging
How do I know which commits to squash within the branch?
If I do git log
I see my history of commits - plus prior commits to master.
Is there an easy way to see/know which commits were made on this branch vs. commits that are already on the master branch? git history
doesn't seem to distinguish them in an obvious way. I think I know which was the first commit on this branch - is there an easy way to be sure?