Skip to content

Instantly share code, notes, and snippets.

@nakabonne
Created November 28, 2018 06:05
Show Gist options
  • Save nakabonne/27dda744dee65870734e3b819138050e to your computer and use it in GitHub Desktop.
Save nakabonne/27dda744dee65870734e3b819138050e to your computer and use it in GitHub Desktop.
This makes origin repository follow upstream it.
#!/bin/bash
set -eu
git checkout master
git fetch upstream
git merge upstream/master
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment