updating a local git repo with upstream code example
Example: update fork repository
## Add Original Repository
git remote add upstream https://github.com/OriginalOwner/OriginalProject.git
## Verify if Repository is added
git remote -v
## Fetch Updates from Original Repository
git fetch upstream
## Checkout to your master branch
git checkout master
## Get Updates from upstream repo
git merge upstream/master
## Push the commit over
git push origin master