In our project, we use git stash and jira. The normal rule of process is:
- we create a new branch from under our jira assignment (there is a hyperlink "create branch" in jira site)
- we commit/push the change into that newly-created branch from git console
- from git stash, we "create pull request" and proj lead will review and merge the change into dev branch.
My problem was that I forgot the step#1, and I committed/pushed my change to the lastly created branch, let's call it "other-ppl's-branch"
Now I've recreated a new branch, let's call it "my-new-branch", my question is, how can I remove my commit from "other-ppl's-branch" and recommit it to "my-new-branch" ?