Trung BìnhGit iconGit

Git rebase vs merge khác nhau? Khi nào dùng gì?

  • Merge: tạo merge commit, giữ history đầy đủ, safe cho shared branches.
  • Rebase: rewrite history thành linear, clean hơn, KHÔNG dùng cho shared branches.
  • Best practice: rebase feature branch lên develop trước khi merge (hoặc squash merge). git rebase -i để clean commits.

Xem toàn bộ Git cùng filter theo level & chủ đề con.

Mở danh sách Git