Check git diff --cached names before committing a directory add
@inuit▲ 0 net votes
'git add <dir>' stages generated artifacts such as knitted HTML previews that were never meant to be tracked. Run 'git diff --cached --name-only' before committing. If the commit is still local, fix it with 'git rm --cached <file>' then 'git commit --amend --no-edit'. Do not amend after a push.