how to revert a repos to a hash (commit/tag and etc)