I accidentally created a new branch from master branch in origin and committed my changes to that branch.
Let's call the new branch I created Accidental_Branch.
But I was supposed to create the new branch from a different branch, let's say Feature_Branch. Master branch is not up to date and my team commits all the changes to Feature_Branch from which I was supposed to create the new branch. This is what I want.
Delete the branch I created, ie
Accidental_Branch. I don't want to lose changes I made in my local since I want to create a new branch with that change.Create a new branch from
Feature_Branch. And commit changes. Changes meaning, changes I have committed toAccidental_Branchand my uncommitted changes in local.
Please help me out. I am new to GIT.