I struggle a bit doing a thing that I am sure is super easy.
Here is my typical git history:
C--F <-- [Branch B] The branch I am working on
/
A--B--D--E <-- [Branch A] Another branch where work is done
A is the past and F the present.
Before push/pull-request on Branch B, I want to be able to pull the last change E on Branch A into my local that is on Branch B.
Ideally, I would like the rebase of Branch A in Branch B to be a new commit on Branch B. So I can easily revert is the two features are not compatible. This commit should only contain the necessary changes for Branch B to be up to date with Branch A. Thus, in case the two features are not compatible, it is super easy to roll back.
The changes made on Branch A and Branch B are not on the same file. If it happens they are, I choose how to manage the conflict (--rebase).
Do you have any ideas on how to do this?
Thanks all
[Additional Information]
I tried to pull --all and/or checkout on Branch A.
However, when I checkout back in Branch B and pull I received the the message Current branch Branch B is up to date.
Indeed the base -step B- hasn't changed and the last change -step F- are already on my local.
However, what I what is to merge without merging. I don't want the changes on Branch B to go on Branch A. I want a step G in Branch B with the latest change of Branch A -step E- and the latest change of Branch B -step F-.