Created
July 7, 2015 16:10
-
-
Save justinhough/1646fcb5255e615a99f3 to your computer and use it in GitHub Desktop.
Update Forked Repository with Bash
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
#!/bin/bash | |
git fetch upstream | |
git checkout master | |
git merge upstream/master | |
git merge upstream/master | |
# If your upstream branch is already setup using | |
# https://help.github.com/articles/configuring-a-remote-for-a-fork/ | |
# then you can run this simple shell script to update your fork quickly and easily. | |
# RUN: $ bash upstream.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment