Skip to content

Instantly share code, notes, and snippets.

@justinhough
Created July 7, 2015 16:10
Show Gist options
  • Save justinhough/1646fcb5255e615a99f3 to your computer and use it in GitHub Desktop.
Save justinhough/1646fcb5255e615a99f3 to your computer and use it in GitHub Desktop.
Update Forked Repository with Bash
#!/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