- Stash current changes
git stash
- Checkout master
git checkout master
- 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)