darkmavis1980
4/10/2018 - 10:49 AM

Squash commits

Squash commits

// Squash the number of commits you want, 6 in this example
git reset --mixed HEAD~6 
// Stage all the files
git add -A
// Commit the staged files
git commit -m "Your message"
// Then update the remote using --force
git push --force origin <YOUR-BRANCH-NAME>