-
Notifications
You must be signed in to change notification settings - Fork 8
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?
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
If you are happy with the changes then do:
git checkout tags/
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
If you want to get rid of your local changes for ever do
1. Reset back to HEAD git reset --hard HEAD
1. Check for local file git clean -n -f
1. Remove local files git clean -n -f
If you want the local change
1. Stash the changes for after the pull git stash
1. Do the pull git pull
1. Unstash the changes git stash pop
1. Fix any conflict and add.