Syncing Fork from original
This is the situation where you fork the original repository and now want to update your fork to reflect all the new commits and changes present in the original
You will need to add the remote origin as a available
git remote -vThis will list your current remotes which will look like this likely
origin https://github.com/Siliconrob/ServiceStack (fetch)
origin https://github.com/Siliconrob/ServiceStack (push)Now use this command to add the original repository as valid remotes
git remote add upstream https://github.com/ServiceStack/ServiceStack.gitList the remotes again
git remote -vYou should have this now
origin https://github.com/Siliconrob/ServiceStack (fetch)
origin https://github.com/Siliconrob/ServiceStack (push)
upstream https://github.com/ServiceStack/ServiceStack.git (fetch)
upstream https://github.com/ServiceStack/ServiceStack.git (push)Now fetch the new remotes latest
git fetch upstreamMake sure you are checking out your forks master branch
git checkout masterMerge the fetched remote into your master branch fork
git merge upstream/masterNow commit the changes and push to your fork and you will have reset your forked repository to match the commit logs and changes of the original