I have a git repo for a project and I want to use git for updating the files on the server (Sometimes I forgot to copy all the updated files after working on something for days).
with "pull" I can be sure that all the updated files will be downloaded into the server. But this also has a downside.
The connection string is different between production and live versions, so the web.config file on the server should not be updated while pulling the changes.
I tried gitignore but looks like it works only with commit. How can I keep the web.config on the server as it is?
My repo is on github, the server is windows2008 and I use git extensions.
Thanks