This is legitimate in some cases. Changes to files that are already tracked will still be staged and committed, it just doesn't find new ones. So this is helpful if you want to keep the set of files exactly the same, but still want git add . to work as expected.
View all comments
Show parent comment
242
u/Abject-Kitchen3198 Oct 10 '26
My coworkers suggested I add * to mine and praised it as the best gitignore ever. Stopped all PR comments.