How to Squash All Commits on a Feature Branch
git reset $(git merge-base master $(git branch --show-current))
git add -A
git commit -m "Your Commit Message."
git push --force
Written on April 19, 2022
Insights & Analytics
git reset $(git merge-base master $(git branch --show-current))
git add -A
git commit -m "Your Commit Message."
git push --force