Skip to content

Instantly share code, notes, and snippets.

@camiloherbert
Forked from MMachado-uy/git-stache
Last active April 12, 2018 19:49
Show Gist options
  • Save camiloherbert/55cf8035c07338f1121333a1bd8d3d56 to your computer and use it in GitHub Desktop.
Save camiloherbert/55cf8035c07338f1121333a1bd8d3d56 to your computer and use it in GitHub Desktop.
Add epicness and fun to your boring git stash with this fierce and magestic dragon hoard.
#!/bin/bash
# Add the location of this file to your path and then simply call
# git hoard instead of your regular and dull git stash. Batteries not included.
# Original idea & code: https://gist.github.com/MMachado-uy/cf3cd452f49d2e800e03ec9183c1163a
if [ -d .git ]; then
echo ' __----~~~~~~~~~~~------___'
echo ' . . ~~//====...... __--~ ~~'
echo ' -. \_|// |||\\ ~~~~~~::::... /~'
echo ' ___-==_ _-~o~ \/ ||| \\ _/~~-'
echo ' __---~~~.==~||\=_ -_--~/_-~|- |\\ \\ _/~'
echo ' _-~~ .=~ | \\-_ '-~7 /- / || \ /'
echo ' .~ .~ | \\ -_ / /- / || \ /'
echo ' / ____ / | \\ ~-_/ /|- _/ .|| \ /'
echo ' |~~ ~~|--~~~~--_ \ ~==-/ | \~--===~~ .\'
echo ' ´ ~-| /| |-~\~~ __--~~'
echo ' |-~~-_/ | | ~\_ _-~ /\'
echo ' / \ \__ \/~ \__'
echo ' _--~ _/ | .-~~____--~-/ ~~==.'
echo ' ((->/~ ´.|||´ -_| ~~-/ , . _||'
echo ' -_ ~\ ~~---l__i__i__i--~~_/'
echo ' _-~-__ ~) \--______________--~~'
echo ' //.-~~~-~_--~- |-------~~~~~~~~'
echo ' //.-~~~--\'
git stash $1
sleep 0.1
else
echo "Sorry, I can't find any repos to hoard here"
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment