Use the Git stash as temporary storage for changes that are not ready to be committed in this video.
- [Tutor] In this chapter, we're going to learn … a feature of GIT called, the Stash. … Rarely, without having to commit them, it's a lot like … putting something into a drawer to save it for later. … The Stash is not part of the repository, the staging index, … or the working directory. … It's a special fourth area of GIT, separate from the others. … Before we learn to use the Stash, … let's create a situation where you would commonly need it. … Right now you can see I'm on the master branch. … I'm going to switch to use my shorten_title branch. … So git checkout shorten_title. … Now I'm on my shorten_title branch. … I'm going to make a change to my shorten_title branch. … I'm going to make a change to a file that I know … is going to have some kind of conflict … with the master branch. … So mission.html, I'm going to try and create an issue here. … In the title, Explore California, … I'm going to make it say, Our Mission. … That's going to be my edit. … Now let's come back over here and type git status. …
- 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.