git - File included in .gitignore gets deleted from time to time with no apparent reason -


i have file ignored .gitignore, time time file dissapears.
file's inclusion in .gitignore present in branches don't think switching branches deleting it.
idea may happen this?

i think file tracked @ point it's untracked , ignored because depends on environment , each installation needs own version.
there no deploy script may deleting it.

edit:
realized master's .gitignore had global reference env.php , staging's .gitignore had local referencesubdir/env.php, maybe issue.

based on description, looks file included in branches before including row in .gitignore if archive committed before adding exception, there until remove explicitly. review (and delete) file repository avoid problem in future.

regards andoni


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -