Skip to content

Instantly share code, notes, and snippets.

@printminion
Created August 30, 2017 08:11
Show Gist options
  • Select an option

  • Save printminion/e289189fb7e5cfc57f55bd3b989a085e to your computer and use it in GitHub Desktop.

Select an option

Save printminion/e289189fb7e5cfc57f55bd3b989a085e to your computer and use it in GitHub Desktop.
sync_forked_master.sh
#!/bin/bash
#https://help.github.com/articles/syncing-a-fork/
git fetch upstream
git checkout master
git pull
git merge upstream/master
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment