Dark Launch

Git revert file to a specific commit or revision

Revert a file to a specific version, by using the `git checkout' command.

Bash
$ git checkout <commit> -- path/to/file.txt

For example, revert an icon to a previous state.

Bash
$ git checkout 807eff29 -- static/images/icons/world.svg