Discover many different ways to reference commits in Git.
- [Narrator] In this chapter, we're going to learn … how to navigate the repository's commit tree. … To do that, we need to start off … by talking about the ways that we … can reference commits. … We've covered a few basic ways already … And we should begin with introducing … a new concept called tree-ish. … A tree in Git is a directory which contains … files and other directories. … If you drew a picture of the directory … Git uses the term tree-ish to refer … to both trees and to identifiers … which reference a tree. … when that commit has been applied. … If you go look up a Git command, … it might say that you can use … any tree-ish as a target of that command. … In simple terms, a tree-ish is a directory, … a commit, or a reference. … Let's look at a few examples. … You could have an SHA-1 hash, … a tag reference, or the ancestry of one of those. … There are more advanced examples, too, … but these are the most common. … We aren't ready to learn about branch … and tag references, but let's look …
- 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.