I have an old fork in github which is left behind master on https://github.com/apache/jmeter
This branch is 15740 commits ahead
How do I discard all my changes?
I tried also to pull using GitHub Desktop, but it doesn't make any difference
Also it seems that I can only rebase using my forked project and not the origin github project
EDIT
Tried using answers and failed
git remote add upstream https://github.com/apache/jmeter.git
git fetch upstream
git checkout master
return error:
error: pathspec 'master' did not match any file(s) known to git.
if I continue ignoring the error then push origin master --force
returns error:
src refspec master does not match any.
overcome command line error using different answer in using
git checkout -t -b master
But then last push failed
[remote rejected] master -> master (permission denied) error: failed to push some refs