Unlock your potential with a Pro Membership
Here is where you propel your career forward. Come join us today. Learn more.
Rollback Changes in Working Directory
Lab: Simply Git: Barebones. No Fluff. Essentials.
Video Runtime: 15:05
There are times when you are working on changes and then realize, “Whoops, I’m going in the wrong direction.” When that happens, you want to ability to rollback those changes (or some of them) to the previous commit state. How do you do that?
Git gives you a command to remove one, some, or all of the changed tracked files. But what if you have new directories and/or files? How do you remove those?
Let’s dig into this topic in this episode.
There’s a time to code and …. yup, that sums it up.
Episodes
Total Lab Runtime: 02:55:39
- 1 Lab Introductionfree 06:10
- 2 What is Git?free 24:09
- 3 The Big Picturefree 16:30
- 4 3 Locals - Working, Staging, & Storagefree 14:38
- 5 Git Init - Put New Project into Version Controlpro 12:15
- 6 Original Theme Snapshot - Your First Commitfree 10:56
- 7 Git Add - Stage Small Changesfree 16:29
- 8 Git Commit - Store & Document a Snapshotpro 09:54
- 9 Git Status - View State of Working & Stagingpro 10:26
- 10 Git Log - View Historypro 20:29
- 11 Unstage Changespro 07:16
- 12 Rollback Changes in Working Directorypro 15:05
- 13 Fix the Last Commit Messagepro 02:39
- 14 Add More Changes to Last Commitpro 02:44
- 15 Uncommit Last Commitpro 03:32
- 16 Git Diff - View Differencespro 02:27