I have two machines: dev and live. on the live server I updated a file (a config file). and on the dev server I added few new files.
Now when I do the following on the live server:
git pull origin master
I get a message that Í have some uncommited files and I can't do a pull.
But I don't want to update the repository with that file!
when I do git stash
or git reset hard
(so I can use git pull) the file on the live server is changed to the original file from the dev server. I already added the file to gitignore but it gets updated from the dev server anyway after I do the pull. :(
What should I do so the file on the live server wont be updated by the file from dev?