Git Reset File - Revert File Changes in Git | Online Free DevTools by Hexmos

Revert file changes easily with Git Reset File. Undo modifications to a file from HEAD or a specific commit. Free online tool, no registration required.

git reset-file

Revert a file to HEAD or a commit. Part of git-extras. More information: https://github.com/tj/git-extras/blob/master/Commands.md#git-reset-file.

  • Reset a file to HEAD:

git reset-file {{path/to/file}}

  • Reset a file to a specific commit:

git reset-file {{path/to/file}} {{commit_hash}}