Let's say I have file secret_config
in .git/info/exclude
. My colleague, who doesn't know about this file, thinks file with such name might look shiny in his repository, so he creates, commits and pushes it. I, in good mood, want to pull
, as every morning, but git starts to yell at me:
error: Untracked working tree file 'secret_config' would be overwritten by merge. Aborting
How to tell git to stop yelling at me? Is it possible to tell him to completely ignore this file even while pulling or fetching/merging?
Edit:
When I temporarily create .gitignore
and put secret_config
to it, it, at least, allows me to pull properly. I need to emulate this functionality somehow.