Learn how to configure the command line so that it includes the current branch name with the 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 …
- Finding and viewing commits
- Creating and switching branches
- Comparing branches
- Resetting branches
- Merging branches
- Stashing uncommitted changes
- Setting up a remote repository
- Creating remote branches
- Fetching and pushing changes to a remote
- Enabling remote collaboration
Skill Level Beginner
1. Navigate the Commit Tree
3. Reset Branches
4. Merge Branches
5. Stash Changes
6. Set Up a Remote
7. Collaborate with a Remote
Next steps3m 40s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.