Getting ready

For the status information prompt to work, we also need to source another file, git-prompt.sh, which is usually distributed with the Git installation and located in the same directory as the completion file.

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.