How it works...

Now you are ready to try this. Switch to an existing Git repository, for example, cookbook-tips-tricks, and type the following commands:

$ git che<tab><tab>
checkout      cherry        cherry-pick

You can add another c<tab> and the command will autocomplete to checkout. But the autocompletion feature doesn't only complete commands; it can also help you complete branch names, and so on. This means that you can continue with the checkout and write mas<tab>. You should be able to see the output completed to the master branch, unless you are in a repository where there are several branches starting with mas.

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.