Sau khi đã tạo PR nhưng muốn sửa code

1

Checkout về nhánh cá nhân đang tạo PR

git checkout feature/id
2

Reset code về trạng thái chưa commit

git log --oneline
git reset {commit_id} # copy commit_id trước commit muốn reset
3

Coding

4

Push code

git add .
git commit -m "feat(ten-du-an): issue-1 fix breadcrumbs"
git fetch --all
git rebase -i origin/develop
git push -f origin/feature/id

Last updated