added error message for git commands