We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Pop Again

Now that you've solved the CEO's problem, time to get back to your own work. Here are a few more useful options when it comes to git stash.

Apply Without Removing from Stash

This will apply the most recent stash changes, just like pop, but it will keep the stash in the stash list.

git stash apply

Remove a Stash Without Applying

This will remove the most recent stash from the stash list without applying it to your working directory.

git stash drop

Reference a Specific Stash

Most stash commands allow you to reference a specific stash by its index.

# Apply the third (0, 1, 2) most recent stash
git stash apply stash@{2}

# Remove the third most recent stash
git stash drop stash@{2}

Assignment

Run and submit the CLI tests from the root of the repo.