Skip to main content

Applying a Git stash non-destructively

Posted in Development and Git

git stash pop grabs a stash and dumps the changes on your current branch. It also deletes the stash. It can sometimes be useful to keep the stash if it’s something that you want to reapply on another branch.

git stash apply

Like git stash pop, you can apply a particular stash, rather than the most recently stashed stash. So if you want to apply the changes made in the next-to-last stash, as well as keep the stash in your stash list:

git stash apply stash@{1}

Accessibility in your inbox

I send an accessibility-centric newsletter on the last day of every month, containing:

  • A roundup of the articles I’ve posted
  • A hot pick from my archives
  • Some interesting posts from around the web

I don’t collect any data on when, where or if people open the emails I send them. Your email will only be used to send you newsletters and will never be passed on. You can unsubscribe at any time.

More posts

Here are a couple more posts for you to enjoy. If that’s not enough, have a look at the full list.

  1. WWDC 2025 roundup

    Apple’s World Wide Developers Conference (WWDC) opening keynote is one of the big highlights in my calendar. Here are the bits that stood out to me.

  2. Colour alone can be used to convey meaning, and I don’t like it!

    Despite WCAG’s guidance to avoid conveying information with colour alone, there’s a caveat that allows it, and I’m not a happy bunny!