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