Git sync forked repo

Some git notes

# fork repo on your account then clone
git clone https://github.com/YOUR-USERNAME/ORIGINAL_REPOSITORY

# git remote -v to check the fetch and push repo url 
git remote -v

# add the upstream 
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git

# sync the fork with the upstream
# if there are conflicts resolve, add changes, commit then merge 
git fetch upstream
git checkout master
git merge upstream/master

# finally push the changes to the fork
git push
git  shell