DEV Community 👩‍💻👨‍💻

Discussion on: How to squash Git commits

shankarsridhar profile image
Shankar Sridhar

After making sure your branch is up to date with the remote(origin) master branch, you can also try this:

git reset --soft origin/master

This will let you add all the changes into a single commit.

olegchursin profile image
Oleg Chursin Author

This looks like a nice short-cut if you need all changes in a single commit. ty Shankar