Meaning of leading slash in `.gitignore` file
This is the documentation text: A leading slash matches the beginning of the pathname. For example, “/*.c” matches “cat-file.c” but not “mozilla-sha1/sha1.c”. These are my guesses: If you use an in-repository-.gitignore, the directory in which the .gitignore is located – it is not really useful to make it relative to the repository root. A short … Read more