Consider this: $ git remote show origin No such remote origin $ echo $? 0 Perhaps the code should return non-zero in this case, so that shell scripts could use construct: git remote show origin; || <another action> Jari -- Welcome to FOSS revolution: we fix and modify until it shines - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html