3 ms·
> 'switching to a different branch' and 'reverting a file' are both operations that make your working copy (partly) match a branch git revert is the "undo comm
by cpeterso 15y ago
> 'switching to a different branch' and 'reverting a file' are both operations that make your working copy (partly) match a branch
git revert is the "undo committed change" command.
git reset is the "discard uncommitted change" command (what is called "revert" by Subversion, Mercurial, Perforce, Bazaar, Darcs, Fossil, and SVK).