DEV Community

Iano Njuguna
Iano Njuguna

Posted on

Answer: Create a new branch

  1. Stash current changes git stash
  2. Checkout master git checkout master
  3. Create new branch git checkout -b <newbranchname>

At this point I am slightly confused about where you want to commit your current branch. I am assuming that you are trying to commit it to the new branch you created in…

Top comments (0)