I'm using Git wrong. I want to use it right.
Here's what I've got:
Over here, on my development machine is a Git repository, that I commit to and test on.
Over there, is my web-server - the one place this code will be deployed. The web-server has another bare git repository that I can push to, over SSH, when I am ready to deploy.
What I want to happen is to have a view into the Git repository which always has the latest versions of the source files (on some branch or with some tag).
What I COULD do is to create another (non-bare) git repository on the web-server, and do a manual pull after each push, but I was hoping to avoid having to log in to the web-server each time I do a git push.
Is there a way to do a remotely "push to the web-server and refresh its checked-out files, if I promise I didn't edit any files on the web-server"?
Or am I just doing it so wrong you want to slap me? :-)