diff --git a/pages/common/git-reset-file.md b/pages/common/git-reset-file.md new file mode 100644 index 0000000000..42ab6948fa --- /dev/null +++ b/pages/common/git-reset-file.md @@ -0,0 +1,13 @@ +# git reset-file + +> Revert a file to HEAD or a specific commit. +> Part of `git-extras`. +> More information: . + +- 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}}`