Does git return specific return error codes?

前端 未结 6 501
醉梦人生
醉梦人生 2020-12-13 22:52

Like merging errors, or rebase errors. Does it have a unique error code?

6条回答
  •  攒了一身酷
    2020-12-13 23:27

    In short, no. You're going to see exit code 1 for errors, and 0 for success.

    From a quick grepping of the source, there are some of the expected 127 and 128 for their specific purposes (command not found, errors already reported), and a few unusual codes in a few places, but for run of the mill errors, it's all exit(1).

提交回复
热议问题