I am trying to understand what happens in the following situation:
git rebase origin/X
But I don't really understand what happens here, does git simply replay the commits from X onto FB? Or is the reference to the base-commit simply changed?
I know that if I had made changes on FB, these commits would have been 'moved' to a new base-commit, but what happens exactly in the case where I don't make any changes on my FB?
does git simply replay the commits from X onto FB?
Yes.
If you compare this history of FB
before and after the rebase you'll see the commit ids have all changed because the commits have been re-created.
The free Pro Git includes diagrams which makes this easier to follow.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.