Last active
February 16, 2021 21:20
-
-
Save sashaaro/5214cb89f3b5677944ced6ddb57168e9 to your computer and use it in GitHub Desktop.
git squash commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --hard HEAD~12 | |
git merge --squash HEAD@{1} | |
git commit | |
// or | |
git reset master | |
git add . | |
git commit -m "DEV-21 combined commit msg" | |
git push origin -f my-current-branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment