I have a local master branch, after trying some stuff, decided to go back to commit X, like 4 previous commits, then I make a new branch "master2" and this is now my main branch. When I try to do a new push (to my github) for my different branch it throws an error.
git push -u origin master2
! [rejected] master2 -> master2 (non-fast-forward)
How can i do a push to github for this new branch?