DEV Community

Discussion on: git commit -a

Collapse
 
rsolci profile image
Rafael Solci

Although its a nice command, I prefer using git add -p first, so I can review each modification and decide whether to stage it or not.
I'ts one step more for sure, but saved me of commiting unecessary changes

Collapse
 
gautemeekolsen profile image
Gaute Meek Olsen

Lovely! I didn't know about the -p flag. Definitely going to use this one from time to time. Thank you.