DEV Community

Discussion on: What is your favourite Git command?

Collapse
 
briwa profile image
briwa • Edited

One of my favorites is git add -p. It does an interactive mode to review and stage changes as chunks as opposed to the whole file. Sometimes I would want to commit all of them, other times I'd like to keep some for the next commit or stash them instead. It's like git diff and git add combined.