elikem
9/30/2014 - 7:03 PM

Reverting changes w/ Git

Reverting changes w/ Git

If you want to revert changes made to your working copy, do this:
git checkout .

If you want to revert changes made to the index (i.e., that you have added), do this:
git reset

If you want to revert a change that you have committed, do this:
git revert ...