Make .gitignore more specific The leading slashes prevent it from matching similar-looking paths in subdirectories.