Answer the question
In order to leave comments, you need to log in
Why does .gitignore still sync even though it's added to the exclusions?
Actually, it is specified inside the .gitignore file, but it is still synchronized on all machines. We use Bitbucket.
What could be the problem? Already tired of conflicts with .gitignore, when everyone adds his own folder or file inside himself.
Answer the question
In order to leave comments, you need to log in
The idea of ignoring .gitignore is pretty weird. Its whole point is just to synchronize.
For personal ignores, there is $HOME/.config/git/ignore and $GIT_DIR/info/exclude
Well, yes, a file that git is already watching is not enough to mention in .gitignore. We still need to remove it from the control of the command git rm
git filter-branch --force (so that the directory is not removed from the hard drive)
git filter-branch --tree-filter "rm -rf PATH" HEAD
where PATH is the path to the file/folder
How do I remove a directory in Git?
https://help.github.com/en/articles/removing-sensi...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question