Let's say I have created two branches (apart from the main one), I'll call them branch-a and branch-b .
I am making commits in both branches and at a given moment I want to transfer the changes of a commit from branch-a to branch-b , changes that affect a specific file, how can I do this?
If it really is a single commit that you want to push to the other branch, then you can use git cherry-pick .
For example, if you wanted to take the commit content
abc123
of the branchrama-a
and apply it to therama-b
, you would use the following commands: