Change of commit id after git rebase

After testing, it was found that after executing git rebase,

1) The new commit id will be generated

2) The parent node of the new commit is different from that of the old commit

3) The parent node of the old commit remains unchanged

To view the parent node of a commit:

$ git log --pretty=%P -n 1 commit-id

 

Guess you like

Origin blog.csdn.net/choumin/article/details/114727251