An explanation is needed. So i worked on feature branch (lets call it feature/feature1), commit and push to remote.
git commit -m "commit feature1"
git push origin feature/feature1
Then I started working on a new feature, but instead of checking out to develop, pulling and creating new feature branch, I continued working on feature/feature1 branch.
I don’t want to discard changes, how can I do in a way to create new branch and moving all new changes from feature/feature1 branch to the new created branch? Thanx.
You can use the
--ontoparameter ofrebaseto move some changes from one branch to another. There’s an example of how to do that in the documentation, the section that starts withYour commands will probably looks something like this: