added error messages on git methods