From Dev.to
Git Reset vs Revert vs Restore: Which to Use
Originally published on DevToolHub. Use git reset to move your branch back, git revert to undo a commit with a new commit, and git restore to fix files without touching history. The git reset vs rever...
