News for hackers. Stuff that matters.
Re:Git Tutorials for Beginners by cpeterso on Thursday June 09, 2011 @06:27PM (#2639020)
> '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).

There are no comments on this comment yet.