revert repo to begining state