re: What is your favourite Git command? VIEW POST


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 to the next commit or stash them instead. It's like git diff and git add combined.

code of conduct - report abuse