There's more...

The completion feature also works with options. This is quite useful if you can't remember the exact option but you may remember some of it, for example, when using git branch:

git branch --<tab><tab>
--abbrev=            --merged             --set-upstream-to=
--color              --no-abbrev          --track
--contains           --no-color           --unset-upstream
--edit-description   --no-merged          --verbose
--list               --no-track

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.