I'm trying to squash a range of commits - HEAD to HEAD~3. Is there a quick way to do this, or do I need to use rebase --interactive?
Make sure your working tree is clean, then
git reset --soft HEAD~3 git commit -m 'new commit message'
1.4m articles
1.4m replys
5 comments
57.0k users