Reputation:
I can't get git to ignore any files or folders listed in .gitignore.
Files listed in my global .gitignore file are successfully ignored. But I'd like to have project-level ignores.
Setup
Any idea what's going on here? I can't find any explanation on the internet.
Upvotes: 0
Views: 289
Reputation: 3001
.gitignore
does not work if you put it in the .git
directory.
It should be in your source or working directory
Possibly a repeat of this question Where does the .gitignore file belong?
Upvotes: 2