2 ms·
> I fail to parse how the exclude works even looking at the docs Most git subcommands can take a pathspec, including git log. The documentation you want to re
by TheDong 3y ago
> I fail to parse how the exclude works even looking at the docs
Most git subcommands can take a pathspec, including git log.
The documentation you want to read is the pathspec docs, see here: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec https://git-scm.com/docs/gitglossary#Documentation/gitglossa...
You can see that it includes the exclude keyword, among others.
Since it applies to almost every command (from 'git add -- <pathspec>' to 'git checkout -- <pathspec>'), it's not mentioned as clearly in individual commands.
- planede 3y agogit log and all other commands' man page should really refer back to gitglossary here then. And they should either name their argument <pathspec>, or specify that the given argument (<path> or <file>) is a pathspec.