Skip to content

Instantly share code, notes, and snippets.

@sashaaro
Last active February 16, 2021 21:20
Show Gist options
  • Save sashaaro/5214cb89f3b5677944ced6ddb57168e9 to your computer and use it in GitHub Desktop.
Save sashaaro/5214cb89f3b5677944ced6ddb57168e9 to your computer and use it in GitHub Desktop.
git squash commits
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