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