I was working on master branch and didn't realize that. I made a local commit 'a'. After that I did git pull
, which brought in commit 'b'. After that I made another local commit 'c'. So now my HEAD is at commit 'c'. How do I create another branch with commits 'a' and 'c'? Essentially these commits should be removed from local master and put to the new branch.
After that I need to create a pull request by pushing this branch.