I’ve forked a repo on github and then made a few changes on master branch.
But I made a mistake, I had to work on a new branch not on the master one.
Can I change branch or should I fork the master again, then make the branch and apply the changes I made?
Rename your local branch:
Push it to your remote (let’s say
myremote):Create a master branch from github’s original remote (say
origin):Forcefully push it:
This should do it.