P
P
Pavel2016-04-13 12:36:22
git
Pavel, 2016-04-13 12:36:22

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

2 answer(s)
L
Lynn "Coffee Man", 2016-04-13
@Carduelis

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

Y
Yaolegol, 2019-05-03
@yaolegol

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 question

Ask a Question

731 491 924 answers to any question