Page 1 of 1

Updating server with Git

Posted: Mon Jan 20, 2014 9:40 pm
by stamcof
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

Posted: Mon Jan 20, 2014 9:56 pm
by kjLotus
git pull

Re: Updating server with Git

Posted: Tue Jan 21, 2014 3:42 pm
by altalus
Don't forget to commit any changes before you call a pull or it will fail :)

Re: Updating server with Git

Posted: Wed Jan 22, 2014 5:29 am
by santssoft
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