Skip to content
Home Tutorials Roadmaps Courses
Log in Join free
Tutorials Git Git Stash
Git Beginner FREE

Git Stash

Lesson 1 of 17 Beginner Interactive

git stash temporarily saves uncommitted changes so you can work on something else.

Syntax

GIT
git stash
git stash list
git stash pop
git stash drop
Git Stash
BASH
# Stash changes
git stash

# List stashes
git stash list

# Apply stash
git stash apply

# Apply and remove
git stash pop

# Drop specific stash
git stash drop stash@{0}

Practice

1
Exercise

Practice this concept.

Answer
Run the commands as shown above.

Quick Quiz

1

What did you learn?

This covers the basics.

Interview Questions

It is a fundamental Git feature.