Gộp nhiều commit trên 1 nhánh thành 1 commit - quan1997ap/angular-app-note GitHub Wiki
// https://hoangphiit.com/post/cach-gop-nhieu-commit-thanh-mot-voi-git-rebase
1 . Cách gộp nhiều commit thành một với git rebase
Gộp 3 commit
git rebase -i HEAD~3
từ dòng thứ 2 sửa pick -> s. Nghĩa là gộp các commit sau vào commit đầu
2. Rebase
git rebase branch_name
Fix conflict
git add
git rebase --continue
Sửa commit name
esc => :wq
:qa! để thoát