I started work on what I thought would be a minor bug fix on my master branch. However, it has spiraled out of control to the point where I wish I had created a separate branch to do the development in the first place.
So right now what I'd like to do is:
How can I do this?
You can do a checkout and create a new branch with all local and current changes transferred over.
If you haven't been committing anything yet, you're already in the right position.
git checkout -b edge
git add
what needs to and commit as usual.edge
, switch back to master
with git checkout
and git merge edge
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With