Skip to content

Instantly share code, notes, and snippets.

@greyltc
Last active February 14, 2016 14:47
Show Gist options
  • Save greyltc/daaa6cd9e217eb2ce3e6 to your computer and use it in GitHub Desktop.
Save greyltc/daaa6cd9e217eb2ce3e6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# merge in changes from upstream
# mergeFromUpstream.sh URL
# bash <(curl -L https://gist.githubusercontent.com/greyltc/daaa6cd9e217eb2ce3e6/raw/91f640fc90f91345eeff03788879ea7c9450d8df/mergeFromUpstream.sh) $URL
git remote add upstream $1
git fetch upstream
git merge upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment