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.
View stashed changes
From the course: Git: Branches, Merges, and Remotes
View stashed changes
- [Instructor] Now that we know how to put changes into the stash, we need to see how we view them. Viewing what's in the stash is easy. We use get stash and then list. And it'll show us a list that everything that's in the stash. Now you can have multiple things that are stashed. Right now I have one thing in the stash. This first item here, and you can see my label on it changed mission page title. If I were to have more changes it'd stash those, then there would be another line below that, another line below that and so on. We would have a list of all those little bits of code that we had stored away to deal with later. Notice also the syntax here at the beginning, stash, the @ sign, and then inside curly braces, zero. It's a little awkward at first, but you'll get used to it. That's how we refer to each one of these stashed items. So I can type get stash and then show, just like we show a commit, we can show a stash, then we can use that syntax, S-T-A-S-H then the @ sign, then…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.