Skip to content

Getting the Latest Version

John Holt edited this page Mar 15, 2018 · 4 revisions

Wiki > Getting the Latest Version

Their are two definitions of the latest version of the code, the very latestst fixes and patches and the last stable version.

?Question: Do you want a tag for most people?

Latest stable version.

First look to see what the latest stable version is (shown next to label on the left) on the github page

Then update your local repository (this does not effect the code you have on your machine):

 git fetch

Then looks at what will change when you update:

git diff <tag of the version you are changing to>

If you are happy with the changes then do:

git checkout tags/<tag name>

Latest Master Version

Update your local repository (this does not effect the code you have on your machine):

git fetch

Check the branch you are on it should be master:

git status

Then looks at what will change when you update:

git diff origin/master

If you are happy with the changes then do:

git pull

Trouble shooting

I have local changes and git says pulling would overwrite them

If you want to get rid of your local changes for ever do

  1. Reset back to HEAD git reset --hard HEAD
  2. Check for local file git clean -n -f
  3. Remove local files git clean -n -f

If you want the local change

  1. Stash the changes for after the pull git stash
  2. Do the pull git pull
  3. Unstash the changes git stash pop
  4. Fix any conflict and add.
Clone this wiki locally