From the course: Git: Branches, Merges, and Remotes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Save changes in the stash

Save changes in the stash

From the course: Git: Branches, Merges, and Remotes

Start my 1-month free trial

Save changes in the stash

- [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. Now we have a change…

Contents