gg

Git with less typing

gg revert

gg revert [-r REV] [--all] [--no-backup] [FILE [...]]

restore files to their checkout state

With no revision specified, revert the specified files or directories to the contents they had at HEAD.

Modified files are saved with a .orig suffix before reverting. To disable these backups, use --no-backup.

Options

-all
revert all changes when no arguments given
-C
-no-backup
do not save backup copies of files
-r rev
revert to specified revision