Skip to content

Instantly share code, notes, and snippets.

@brock
Last active August 29, 2015 14:01
Show Gist options
  • Save brock/32a5f37773bfe828b064 to your computer and use it in GitHub Desktop.
Save brock/32a5f37773bfe828b064 to your computer and use it in GitHub Desktop.
Name git stashes
function gs() {
BRANCH=$(git branch | grep "*" | sed 's/^\* //')
TODAY=$(date +"%Y%m%d-%H%M%S")
git stash save $TODAY-$BRANCH
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment