Skip to content

Instantly share code, notes, and snippets.

@jwheare
Created January 13, 2012 18:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwheare/1607928 to your computer and use it in GitHub Desktop.
Save jwheare/1607928 to your computer and use it in GitHub Desktop.
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;
}
@muz
Copy link

muz commented Jan 13, 2012

Y u no "git pull --rebase"?

@jwheare
Copy link
Author

jwheare commented Jan 13, 2012

Cos I have this in my ~/.gitconfig

[branch]
    autosetuprebase = always

@muz
Copy link

muz commented Jan 13, 2012

But I don't.

@jwheare
Copy link
Author

jwheare commented Jan 13, 2012

Just answering the question, darling.

@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