Discover what a Git branch is and get an overview of how it is used.
- [Instructor] In this chapter, … we're going to be talking about branches in Git. … Branches are one of the most powerful features in Git, … in large part because of how easy they are to use. … It's as if Git wants you to branch, … and getting the most out of Git will mean … using branches often and effectively. … In Git, branches are cheap. … They're easy to create, they don't take a lot of … processor power, they don't take up a lot of storage space, … they're easy to delete, and they're easy to work with. … That means branches make it easy to try new ideas. … Let's imagine that you have your master branch … that you're working on, … and suddenly you get an idea for something, … but you're not sure if it's going to work out or not. … Instead of making a lot of commits to your master branch … and then trying to undo those if it doesn't work out, … instead, you can create a new branch … and try your ideas there. … If those ideas don't work out, … you just throw away the branch, … and you haven't tainted your master timeline …
- 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.