Skip to content

Instantly share code, notes, and snippets.

@davidcsejtei
Created December 13, 2021 09:08
Show Gist options
  • Save davidcsejtei/e4df9e84f037dce257b8e7a520e696e8 to your computer and use it in GitHub Desktop.
Save davidcsejtei/e4df9e84f037dce257b8e7a520e696e8 to your computer and use it in GitHub Desktop.
Squash commits into one
```
git checkout feature/TICKET-123
git merge master
git reset master
git add .
git commit -m "TICKET-123 add something"
git push -f origin feature/TICKET-123
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment