Updating server with Git

Post Reply
stamcof
Posts: 11
Joined: Sun Jul 22, 2012 1:48 am

Updating server with Git

Post by stamcof » Mon Jan 20, 2014 9:40 pm

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Updating server with Git

Post by kjLotus » Mon Jan 20, 2014 9:56 pm

git pull

altalus
Posts: 136
Joined: Wed Nov 14, 2012 8:31 pm
Location: Montreal Qc, CAN

Re: Updating server with Git

Post by altalus » Tue Jan 21, 2014 3:42 pm

Don't forget to commit any changes before you call a pull or it will fail :)

santssoft
Posts: 40
Joined: Tue Apr 30, 2013 5:41 am

Re: Updating server with Git

Post by santssoft » Wed Jan 22, 2014 5:29 am

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

Post Reply