thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Intermediate

git stash

A Git command that temporarily shelves uncommitted changes so you can work on something else and reapply them later.

Definition

Stashes are stored on a stack; git stash pop reapplies and removes the latest, git stash apply keeps it, and git stash list shows all entries.

Example

git stash, git switch hotfix, fix and commit, git switch -, git stash pop

Exam tip

stash pop removes the stash after applying; apply keeps it.

Related terms