Save changes in the stash Git


show more Saving changes in the stash provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training show less
please wait ...

Saving changes in the stash

In this chapter we're going to learn about a feature of Git called the stash. The stash is a place where we can store changes temporarily without having to commit them to the repository. 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 in Git, separate from the others. And the things that we put into it aren't commits, but they're a lot like commits, they work in a very similar way. They're still a snapshot of the changes that we were in the process of making, just like a commit is.

But they dont have a SHA associated with them. Let's try making a change, and then we can store it in the stash. Let's start by checking out one of our other branches. Let's check out this shorten_title branch, so git checkout shorten_title. Now the shorten_title branch does not include the changes that we've made to our text_ed...

Saving changes in the stash
Video duration: 4m 5s 6h 25m Beginner

Viewers:

Saving changes in the stash provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training

Subject:
Developer
Software:
Git GitHub
Author:
please wait ...