I want my server to fetch and pull new commits/pushes from local automatically. How do I accomplish that with a hook?
Currently, if I want to make a change, I save the file, add a commit message, push it. That updates my github repo. However, my server is now out of date of this recent change and I have to ssh into server and run command: git fetch, to determine if there are any changes and then git pull to bring it up to date.
I would like to simplify this process by the server automatically updating (pulling from github) after a change has been added (pushed locally).