Skip to content

Instantly share code, notes, and snippets.

@ilyar
Created February 17, 2015 19:06
Show Gist options
  • Save ilyar/52fbc7bebfd952dc8495 to your computer and use it in GitHub Desktop.
Save ilyar/52fbc7bebfd952dc8495 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
git fetch origin
git stash
git rebase origin/$(git rev-parse --abbrev-ref HEAD)
git stash pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment