2 ms·
The question is why anyone feels files like .gitignore should be hidden by default from ls output - there even seems to be disagreement between versions of git
by wizofaus 4y ago
The question is why anyone feels files like .gitignore should be hidden by default from ls output - there even seems to be disagreement between versions of git whether git itself ignores such files by default (using git add e.g.), though I don't believe it does, can't check currently.
- wizofaus 4y agoWas finally able to check on one of my repos and git 2.34.1 most definitely does ignore . files by default (both git status and git add), unless you specify --ignore for git status or --force for git add. But my .gitignore (either for the clone or global core.excludesfile) doesn't specify that . files should be ignored, so why is it doing so? I can't see how to do a git add to add all new files, including dot files, except those in .gitignore.