Reputation: 153
I have a scenario where I added a bunch of *.extensions for git to ignore. I committed this and pushed this to master. My particular local branch works like a charm and I don't see any of the untracked files. Meaning the .gitignore file works well for me. But the rest of the users of this particular repo are not able to see this. My understanding was just like a ny change made to a file and pushed to the master under git, reflects to everybody, assuming everything else is fine, even git ignore should have worked. Any ideas how I can make others avail of the .gitignore files I add??
Regards 0x6d6e
Upvotes: 2
Views: 784
Reputation: 24060
Just because you have pushed something to a central Git repository doesn't mean others will see it. They have to git pull
the changes down in order to get the .gitignore
file -- until they do that they won't see any of changes. Plus, anything that they have added with git add
before the .gitignore
was pulled down will still show up in the index and therefore the git status
will still show them.
Upvotes: 1