I somehow managed to get some experimental features in my master branch at some point in the past which got pushed out to origin. My local master branch doesn’t have the experimental features, so I’m going to force push it out. I don’t want to lose the experimental changes, so is there a way I can move origin/master (or copy it) to a new branch before I force push my local master out to origin?
Share
Or do cherry picks of those commits with
git cherry-pick <sha1>to another branch and then force push master.Or do an interactive rebase and rearrange commits as you want.