DEV Community 👩‍💻👨‍💻

Discussion on: How do you use git when working solo?

kevinleebuchan profile image

I have a "dev" branch that I use while I'm working on something new, with regular commits. When I'm done with what I was trying to accomplish, I will clean up the commits and often collapse them into one or two, then merge into main. If I'm trying something really new, I might use a feature branch so I can discard the whole thing easily if I need to.