DEV Community

Discussion on: When to make a Git Commit

Collapse
 
bgadrian profile image
Adrian B.G.

I don't trust the local storage, I need to push from time to time. So I do WIP commits.

Yes, WIP commits are fine. But if they appear in the history of your master branch I'm coming for you!

How do you handle this? git merge --squash ?
Based on experience I don't use and recommend rebase, it's too powerful and ppl brake things.

Collapse
 
gonedark profile image
Jason McCreary

I rebase before merging my feature branch. This allows me to clean up any previous commits accordingly.