Updating server with Git
Updating server with Git
I just recently installed Git and got everything setup and worked perfectly. For some reason i can't seem to figure out how to update the server to the latest revision with Git. Any help would be appreciated. Thank you.
Re: Updating server with Git
git pull
Re: Updating server with Git
Don't forget to commit any changes before you call a pull or it will fail
Re: Updating server with Git
If you do not want to commit the changes to the code, you can use git stash to record the current state of the working directory and go back to a clean working directory before pull, the order of the commands is:
git stash
git pull
git stash pop
More info: http://git-scm.com/docs/git-stash
git stash
git pull
git stash pop
More info: http://git-scm.com/docs/git-stash