git
Git Exit Codes
Exit codes returned by git commands. Most git commands return 0 on success and 128 for fatal errors; individual subcommands define additional codes.
6 codes
· All codes 6 codes
- 0 Success The command completed successfully.
- 1 General error The command failed for a non-fatal reason, such as no changes to commit, a merge conflict left unresolved, or a pattern that matched nothing. The exact meaning is subcommand-specific.
- 2 Usage or configuration error The command was invoked incorrectly, or a configuration error was detected. Often accompanies a usage message.
- 128 Fatal error A fatal error occurred and git could not continue. Common causes include a missing repository, an invalid object name, or an I/O failure. Git prefixes the stderr message with fatal:.
- 129 Usage error (bad flag or argument) An unrecognised option or argument was passed to a git command.
- 130 Interrupted The command was interrupted by a signal, typically SIGINT (Ctrl-C).