4 ms·
> I’ve had the opposite problem: forgetting to add new files. Any good solutions for this around? For now I've adopted running `git status` after `git add -p`
by s1mplicissimus 10mo ago
> I’ve had the opposite problem: forgetting to add new files.
Any good solutions for this around?
For now I've adopted running `git status` after `git add -p` to make sure there's no untracked files, but it feels a bit clunky
- 1718627440 10mo agoYou can run the tests on the actual produced commit, if you missed some files there would be a compilation error.
- kevinmchugh 10mo agoI occasionally forget to add a new file but don't mind it much. I consider it a significantly smaller problem than committing a file that shouldn't be. CI is gonna run and my tests are surely gonna fail if I didn't commit some file. So I'll see that and commit --amend or fixup to add the new file. unless the file I forgot to commit is the tests, which hopefully I'll catch by the time of the PR