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.


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