【CMD】Git Reset & Git Revert
2024-05-22 本文已影响0人
盐果儿
If you forgot to add a file to the commit.
git reset --soft HEAD
Undo a single commit by taking you back to the staged files before the commit.
git revert --no-edit <commit ID>
Reference: https://www.datacamp.com/tutorial/git-reset-revert-tutorial