Sync a git repository
First we need a upstream
remote to sync
git remote add upstream https://{{url}}
The url is where you do a fork
Fetch all the branches
git fetch upstream
Go to master branch
git checkout master
Rewrite your master branch
git rebase upstream/master
Update
git push -f origin master
Written by Riderman
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Fork
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#