Skip to content

Instantly share code, notes, and snippets.

@derekriemer
Created July 1, 2016 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekriemer/31dce2ea150ef82379387a3079a322d7 to your computer and use it in GitHub Desktop.
Save derekriemer/31dce2ea150ef82379387a3079a322d7 to your computer and use it in GitHub Desktop.
Merge and update your forks easily.
mergeMagic(){
echo "fetching all"
for i in $(git remote show); do
git fetch $i
done&&
echo merging $1/$2 into origin/$2 &&
git checkout $2 &&
git merge $1/$2 &&
echo "Your fork is ready to be pushed."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment