Skip to content

Instantly share code, notes, and snippets.

@jwheare
Created January 13, 2012 18:29
git pull shuffle
gpu() {
stashlist="$(git stash list)"
if [ "$stashlist" ]; then
echo "Already stashed changes"
echo $stashlist
return 1;
fi
git stash && git pull && git stash pop;
}
@Jonty
Copy link

Jonty commented Jan 14, 2012

I keep meaning to write this. Now I don't have to. Ta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment