Learn about the three different types of resets in Git in this video.
- [Instructor] In this chapter, we're going to learn … how to reset branches and we're going to begin by first looking … at the three different types of resets that you can do. … Reset is going to change the files in the staging index … and/or the working directory to the state … they had when a specified commit was made. … And a simpler way to think of it is you're saying, … make my project look like it did back then. … What it's actually doing is moving the head pointer … to a specific commit and then it may also be changing … some of the files in your staging index … or working directory as well. … There are three types of reset. … There's soft, mixed and hard. … Let's look at all three of them. … A soft reset is the simplest, it moves the head pointer … to the specified commit but it does not change … the staging index, it does not change the working directory. … So essentially we're just moving the recording head … where our next commit will go … to another place in our commit tree. …
- 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.