Git Notes

Published On 2023/05/11 Thursday, Singapore




Delete Commits

Delete commits by reverting back to a given commits.

git push -f origin commit_id:branch

Restore a Single File

git restore path_to_file

bash git ls-tree -l HEAD -- path_to_file `




💚 Back to Home