Answer the question
In order to leave comments, you need to log in
How to make git ignore files?
Help, nothing helps. There is a .gitignore file, which has only three lines:
log/*
tmp/*
profile/*
The first two patterns work, both files and folders are ignored - everything is in general. But profile / * does not want to work in any. Indexes any changes. git reset --hard does not remove files from the indexed list, that is, git has indexed .gitignore, knows what to ignore, but does not ignore. git rm -r --cached profile/ doesn't help, and neither does ignoring every single file, every single directory. Help fight this plague
Answer the question
In order to leave comments, you need to log in
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question