1

I had a local branch say, X. It had some conflict. I resolved it and by mistake merged it. I then reverted those commits from main using git reset --soft <commit-hash>. I deleted the local branch. Now, I have those changes in my local master. I want to push these changes as a new branch. I tried creating a new branch and pushing it. It shows working tree clean. How do I push the local changes in my master as a new branch in remote? I tried : git checkout -b <branch> git push -u origin <branch> gives working tree clean.

era s'q
  • 537
  • 1
  • 7
  • 27

0 Answers0