sleepdefic1t
10/16/2019 - 12:29 PM

Git Reset Upstream

Reset a Forked Repo's Master to Upstream

# ensures current branch is master
git checkout master

# pulls all new commits made to upstream/master
git pull upstream master

# this will delete all your local changes to master
git reset --hard upstream/master

# take care, this will delete all your changes on your forked master
git push origin master --force

https://stackoverflow.com/a/42332860/3658031