logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

git-reset-file - Reset one file

Author

       Written by Sasha Khamkov <sanusart@gmail.com>

Description

       Reset one file to HEAD or certain commit-hash

Examples

       Reset one file to HEAD

           $ git reset-file .htaccess

       or reset one file to certain commit

           $ git reset-file .htaccess dc82b19

Name

git-reset-file - Reset one file

Options

       <filename>

       The name of the file to reset.

       <commit-hash>

       (Optional) Hash of commit to reset the file to. Defaults to HEAD.

Reporting Bugs

       <https://github.com/tj/git-extras/issues>

See Also

       <https://github.com/tj/git-extras>

                                                  October 2024                                 GIT-RESET-FILE(1)

Synopsis

git-reset-file [<filename>] commit-hash

See Also