TLDR
Enter a command. For example: nop, ipaggcreate, nvm, diff, git annex.

git reset-file

 
Revert a file to HEAD or a specific 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}}

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.