Daniel Terhorst-North taught me a new very handy git thing in Mastodon:
Yet another brilliantly useful git command that I will instantly forget:
git add -N .Marks all new files as tracked-but-not-staged, so git diff will show them but they aren’t in the index yet.
This is brilliant. I’ve always been bit annoyed by the fact that I can’t git diff new files. My workflow before adding files to staging is to git diff all separately to make sure I’m committing the right things and this is so helpful.
Keywords: git