Created
July 1, 2016 03:37
-
-
Save derekriemer/31dce2ea150ef82379387a3079a322d7 to your computer and use it in GitHub Desktop.
Merge and update your forks easily.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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