I am the sole developer on my own projects and my workflow is the following:
- Local development, committing and pushing to github repo.
- SSH into web server where I do
git add -A
git stash
git pull origin master
Now, if I don't stash every time before I pull the master branch head, it will end with "aborting", because some file would be overwritten otherwise. This causes lots and lots of stashes, that I will never need.
How can I make git understand that the code I pull is always the code that I want? If there is something that will be overwritten by the pull, so be it.