In this video, permanently delete a branch.
- [Teacher] We've learned how to create branches, … work with them, and even rename them. … Now let's learn how to delete them. … So first, let's remind ourselves what branches we have. … You can see that I'm currently on the SEO title branch. … Let's all switch to the master branch. … Whatever branch you're on, let's switch to the master branch … and we're going to do that with checkout. … Git checkout master. … And I want us to all be on the master branch … 'cause I want us to create a new branch from here. … So I'm going to use git branch to create that branch. … I'm going to call it branch to delete with underscores. … And notice I'm just using the branch command, … not checkout dash B. … So that means that I created the branch … but I did not switch to it. … That's important. … If you actually did the checkout dash B option, … that's fine, just now checkout master again, … so that you're on the master branch. … If we want to delete this branch, it's pretty simple. … We just type git branch and then use …
- 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.