J
J
Johnny Show2018-08-19 20:17:22
git
Johnny Show, 2018-08-19 20:17:22

How to create a patch from the commits of one branch and roll the patch onto another branch?

I created a branch in master, made changes, but I had to make a branch from another branch, or whatever it is called. In general, I will then need to create the same branch (with the same name) on another branch (develop). But I need to push the initial changes to a new branch. I was advised to create a patch and push my changes there. After reading the documentation, I didn’t understand it, and I also don’t want to spoil my task more. Maybe here they will help me to chew on the already not complicated process in creating a patch and transfer the changes to another branch. Thank you for your attention.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2018-08-19
@SagePtr

I usually stupidly cherry-pick the necessary commits to another branch. You can also do this through rebase.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question