Skip to content

Glossary: Git Beyond the Basics

exit status

Also written: exit code, $?

A command's result: 0 means success and anything else means failure. The shell keeps the last one in `$?`, and Git uses it to decide whether a hook or bisect test passed.

Where the book teaches it

Related terms

bisect runhookgrep