In git, I have a branch A
. I create another branch B
where I create few commits. Then I want to fast forward branch A
to branch B
.
I know that I can checkout A
and do fast forward to the latest commit of B
. This operation requires two modifications of working copy: the first to return to A
and then revert working copy to B
. If new commits on B
contain a lot of changes, the operation could be quite slow.
Is it possible to do fast forward another branch without changing the working copy? (in other words, to move just the pointer of A
)
git update-ref
. Use with caution. – Glomeration