Skip to content

Instantly share code, notes, and snippets.

@sinsoku
Created May 30, 2012 16:55
Show Gist options
  • Save sinsoku/2837601 to your computer and use it in GitHub Desktop.
Save sinsoku/2837601 to your computer and use it in GitHub Desktop.
git-qsave
#!/bin/sh
if [ -n "`git diff`" ]
then
git stash save --keep-index
git stash apply --index
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment