"""usage: git commit [options] [--] [...] -h, --help -q, --quiet suppress summary after successful commit -v, --verbose show diff in commit message template Commit message options -F, --file read message from file --author override author for commit --date override date for commit -m, --message commit message -c, --reedit-message reuse and edit message from specified commit -C, --reuse-message reuse message from specified commit --fixup use autosquash formatted message to fixup specified commit --squash use autosquash formatted message to squash specified commit --reset-author the commit is authored by me now (used with -C-c/--amend) -s, --signoff add Signed-off-by: -t, --template use specified template file -e, --edit force edit of commit --cleanup how to strip spaces and #comments from message --status include status in commit message template Commit contents options -a, --all commit all changed files -i, --include add specified files to index for commit --interactive interactively add files -o, --only commit only specified files -n, --no-verify bypass pre-commit hook --dry-run show what would be committed --short show status concisely --branch show branch information --porcelain machine-readable output -z, --null terminate entries with NUL --amend amend previous commit --no-post-rewrite bypass post-rewrite hook -u, --untracked-files= show untracked files, optional modes: all, normal, no. [default: all] """ from docopt import docopt if __name__ == '__main__': print(docopt(__doc__))