git - Assumed unchanged file changed on pull -


i have file config.properties contains information needed comunication webservice (ie api token etc.) , don't want information become public.

i made properties empty , file looked this:

accesstoken= domain= 

then issued git update-index --assume-unchanged config.properties , committed file.

after filled properties information needed file looked bit this:

accesstoken=xxxxxxxxxxxxxxx domain=http"//xxx.xxx.xx/xx 

when ran git status after file didn't list changed, far good.

did same other users contributing project , worked fine.

but here's problem: when pull file gets 'reset' it's 'original' state (ie 'empty' file) , end again:

accesstoken= domain= 

what have done wrong? or idea of git update-index --assume-unchanged wrong?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -