From the course: Git: Branches, Merges, and Remotes

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Configure command prompt

Configure command prompt

From the course: Git: Branches, Merges, and Remotes

Start my 1-month free trial

Configure command prompt

- [Instructor] Now we know how to work with branches. Let's modify the command prompt that we use so that we can tell what branch we're on currently. The program that we're going to use to do that is called Git Prompt. It's just going to add the current branch name to our command prompt. It's going to be a similar process to what we did with .git-completion.bash. We did that in the Git Basics course. We're going to download a script, then we're going to tell our command line program to load it up so that it's always available. Now it's possible that you already installed it when you installed Git completion, or it may already be installed for you. There's an easy way to check. The first thing to check is to see whether you're seeing the branch name right now when you're inside a project. If you see a branch name here in your command prompt, then you'll know that it's configured, but you may not have it configured all the way, so another good way to test is to try underscore underscore…

Contents