git reset file remote code example Example: revert file to master version git git checkout -- filename