I\'ve completely messed up the master branch of my forked git repo.
I want to completely reset the master branch that was pushed to my fork with the contents of the
This would reset your master branch with the upstream master and if the branch has been updated since your forked it would pull those changes as well.
git checkout master
git reset upstream/master
git pull --rebase upstream master
git push origin master --force
PS: Assuming Upstream is the original repo while origin is your copy.