DEV Community

Discussion on: When to make a Git Commit

Collapse
 
clickclickonsal profile image
Sal Hernandez

What’s your advice on how to commit on a brand new project?
For example, when building out a server I find myself needing to do a lot of setup & I find it difficult to commit because I’m like “I’m not done yet!”

Collapse
 
gonedark profile image
Jason McCreary

Break your work up into smaller chunks and commit those as they are ready. Maybe the project isn't done, but that piece of work is done.

There's nothing wrong with WIP commits, but based on what you described, it sounds like all your work is one big WIP commits. Which is obviously not helpful from a version control perspective.