From the course: Complete Guide to Git

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Configure command prompt

Configure command prompt - Git Tutorial

From the course: Complete Guide to Git

Configure command prompt

- [Instructor] In this movie, I want to share a helpful tool with you. It's an optional tool, but it's frequently used by developers who use Git. There's a script that you can install, which will display the name of the current branch in the command line prompt. It's useful because you can easily tell what branch you're using without having to type the branch command. The command line prompt is configurable, but a common format is to show the current directory name, followed by the current branch name in parentheses. To use it, we'll need to download and install a script. I'll also show you how to check to see if it's already installed, but if not, we can find the script in the GitHub repository for the Git software at github.com/git/git. You can already see that my command prompt does not include the current branch. If yours already does when you're inside a Git repository, then you're all set and you can skip this movie. I'll check and see if the script has been installed by trying…

Contents