[Terminal/GitHub] Rollback - git checkout, revert, reset

Minzi·2024년 12월 12일

Local rollback

git checkout <commit_hash> <file_path>

Revert commits

git revert <commit_hash_of_deletion_target>

Reset commits

git reset --hard <commit_hash>
git push -f origin <branch_name>

0개의 댓글