Skip to content

Instantly share code, notes, and snippets.

@typeon
Last active August 2, 2016 13:22
Show Gist options
  • Select an option

  • Save typeon/3ff1c1ee1dfe79f605ad71b5f03f7fa1 to your computer and use it in GitHub Desktop.

Select an option

Save typeon/3ff1c1ee1dfe79f605ad71b5f03f7fa1 to your computer and use it in GitHub Desktop.
#!/bin/bash
# - fork한 original source를 my repository에 merge시켜서 최신버전을 유지시킨다.
git remote add upstream ORIGINAL_REPOSITORY_URL
git fetch upstream
git checkout master
# merge를 하던지.
git merge upstream/master
# rebase를 하던지.
git rebase upstream/master
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment