I think you should have mention that NEVER REBASE PUBLISHED HISTORY! Interactive Rebase is only a tool to format your local snapshots to more cohesive units before publishing it with push. This is because Rebase replaces commits with new ones with different ID's, and somebody may have and probably has continued his work from the old commits. This will mess the history and create redundant merge commits to confuse people. However, typically git wont't let you push rebased published commits without --force flag.
VD
Rebase 1 branch vd feature_01 (đã push hay chưa ?).
Rebase xong có cần push lên ? Nếu có có cần --force ?
Rebase mặc định có hiểu rebase sang branch nào ? hay về branch cha lúc rẽ nhánh ?
Sang master check hist commit log => đã thấy rebase gộp commit lại, ko cần làm j bên master ?
(magic).
Comments
Post a Comment