Skip to content

Instantly share code, notes, and snippets.

@rapportive
Created November 14, 2011 18:58
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rapportive/1364778 to your computer and use it in GitHub Desktop.
#!/bin/bash
STASHED="$(git stash)"
git "$@" && [ "$STASHED" = "No local changes to save" ] || git stash pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment