git - Preventing Files from Being Overwritten -


i have files don't want pushed or overwritten. in .gitignore file. when other developers push copies of these files, local copies overwritten. how prevent this? since added these files .gitignore file 2 weeks ago, changes haven't been tracked, when stash, pull, , unstash, changes on past 2 weeks gone. how keep changes when stash , unstash files gitignored?

don't put them on gitignore. if want hide file use:

git update-index --assume-unchanged <file> 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -