-
git cherry pick
Tình huống Có 2 branch develop và master tương ứng với 2 môi trường server. Có 2 module cần triển khai như thế này: Module A -> branch A -> Làm xong merge branch develop -> Tạo nhánh release A nhưng k tạo tag release. Sau khi làm xong module A thì tới module B.…
-
Recover a reset or deleted commit in Git with git reflog
In previous post, we know how to reset (delete) a commit that’s pushed to the remote repository server using git reset –hard and git push origin -f. This post show you how to recover a reset or deleted commit with git reflog. We can find the commit that we want to be on in that…
-
Reset a commit on the remote repository server with git reset
Imaging that we commit and push the wrong code and we want to reset completely. So we can use git reset with –hard and then push back to the remote repository with git push Case study We want to reset commit add deployed on IIS to the previous commit Update sdk + lib + packages…