I sometimes use git rebase -i HEAD~N to rebase the last N commits interactively. From there you can decide what action to apply on each commit: pick, reword, squash etc.
Some open source projects enforce single commit pull requests so it comes handy then and makes it easy to squash commits.
I sometimes use
git rebase -i HEAD~Nto rebase the last N commits interactively. From there you can decide what action to apply on each commit: pick, reword, squash etc.Some open source projects enforce single commit pull requests so it comes handy then and makes it easy to squash commits.
Interaction for the win.
Interactively Rebase with git
Jesse Phillips ・ Jan 24 '20 ・ 3 min read
Thanks for sharing
Thanks
I'll add it