reset working directory and push to origin for non bare repos