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
Post a Comment