-
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 <tag of the version you are changing to>
If you are happy with the changes then do:
git checkout tags/<tag name>
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
- Reset back to HEAD
git reset --hard HEAD
- Check for local file
git clean -n -f
- Remove local files
git clean -n -f
If you want the local change
- Stash the changes for after the pull
git stash
- Do the pull
git pull
- Unstash the changes
git stash pop
- Fix any conflict and add.