In this video, learn how to rename a branch.
- [Instructor] Now that we know how to create branches, … let's learn how we can rename our branches. … First, let's remind ourselves what branches we have. … Git branch is the command to do that. … You can see that I have three branches, … and one of them is called new underscore feature, … and that's my currently checked-out branch. … Now new feature isn't a very well-named branch. … I did it at the very beginning. … We really would rather have something descriptive … so that people know what it is, … so that I can remember five weeks from now … what this feature was all about. … So what was this feature about? … Let's use git diff master with new feature … and we can see what changed. … We changed something in the title. … Let's say that we did this … for search engine optimization purposes. … So let's rename it something like that. … Let's call it seo underscore title. … So in order to rename a branch, … let's go look at the documentation. … Git help and then branch, … and then find out what it tells us. …
- 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.