From the course: Git: Branches, Merges, and Remotes
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Configure command prompt
From the course: Git: Branches, Merges, and Remotes
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Branching overview4m 33s
-
(Locked)
Create branches3m 18s
-
(Locked)
Switch branches2m 27s
-
Create and switch branches3m 22s
-
(Locked)
Switch branches with uncommitted changes3m 39s
-
(Locked)
Compare branches4m 39s
-
(Locked)
Rename branches2m 21s
-
(Locked)
Delete branches4m
-
(Locked)
Configure command prompt6m 46s
-
(Locked)
-
-
-
-
-
-