logoalt Hacker News

embedding-shapeyesterday at 5:53 PM1 replyview on HN

> Most of the colleagues I've worked with only use "git add ." without checking first.

I mean I do too, then git status to check what went it, then unstage files that aren't supposed to be there, rewrite .gitignore to exclude them (usually), and finally commit. Tends to be faster than manually adding each file/path. Alternatively, I start out with `git add -p` (interactive) and go through that workflow.


Replies

blharrtoday at 1:44 AM

Git becomes a lot easier to understand once you learn its "hidden" interactive flags

Like git rebase -i as well