A mixed reset undoes changes but leaves the code in your working directory.
- Once we know how to preform a soft reset, you'll see … that a mixed reset is very similar. … Lets first remind ourselves, the mixed reset is going to move … the head pointer but its also going to make changes so the … staging index matches the repository. … That is at the point where that head pointer is. … But it's not going to make any changes to our working … directory. … Everything will still stay the same as it was there. … The way we're going to call it is with git reset and then the … dash dash mixed option and provide a tree-ish as an … argument. … Such as a branch name, a tag, or a commit SHA. … And a mixed reset is also the default choice. … If we specified no option. … If we left out dash dash mixed it would be a mixed reset by … default. … So why would we use a mixed reset? … A mixed reset allows us to return to an old state, … just like a soft reset does, and it leaves code changes … in the working directory. … Not in the staging but in the working directory. … It's most useful for reorganizing your commits. …
- 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.