This article was first published on Medium. You can take a look at it here.
Have you ever wondered how one learns to use Git well? You use Git ver...
For further actions, you may consider blocking this person and/or reporting abuse
git add -Ais an anti-pattern, please don't recommend it as a rule of thumb!Use
git statusto list files andgit addfor each file you want/need to add. Then learn aboutgit add -i(orgit add -p), or use GUIs for a point-and-click UX (I personally usegit citoolmost of the time, andgit add -pwhen I need to edit a hunk, but this is quite rare).The rule of thumb really is not to forget that this is about "version control" (like any VCS), and not some backup tool. Commits, commit logs and commit history need to be crafted with care and love, for your coworkers/contributors, and your future self.
Learn about the existence of
git blameandgit bisect(assuming you already know and usegit logand/orgitkor similar tool) to understand why a clean history is good for you.Those are my advice.