It's normally zero on sucess, 1 on fail, and various codes specific to the
command and fault otherwise.

Often the codes are the filesystem error code for the failed access.

128 is an alternate fail code. (just seen one such comment in
https://public-inbox.org/git/ae75f388-edbc-8f00-e98c-825027a58...@gmail.com/)

also https://stackoverflow.com/a/4918002/717355

Philip
----- Original Message ----- From: "Vinoth Rajendran" <vinothrajendran4...@gmail.com>
To: "Git for human beings" <git-users@googlegroups.com>
Sent: Saturday, May 26, 2018 1:29 PM
Subject: [git-users] Return Code for Git Commands


Hi,
   I want to write a *shell script* to perform some repetitive git
commands used on daily basis. I could not find documentations supporting
return status for git commands in online. If available, can you please
provide the link for the documentation. If not available, please guide me
how scripts written using git commands.

Regards,
Vinoth Rajendran

--
You received this message because you are subscribed to the Google Groups
"Git for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to