Skip to content

Instantly share code, notes, and snippets.

@yuchan
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save yuchan/1c7aa5512923f8ce3723 to your computer and use it in GitHub Desktop.

Select an option

Save yuchan/1c7aa5512923f8ce3723 to your computer and use it in GitHub Desktop.
Sync master from forked repository.
#! /bin/bash
# http://stackoverflow.com/questions/7244321/how-to-update-github-forked-repository
git fetch upstream
git checkout master
git rebase upstream/master
git push -f origin master
@yuchan

yuchan commented Sep 13, 2014

Copy link
Copy Markdown
Author

事前に

git remote add upstream オリジナルのリポジトリURL

をやっておく必要があります。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment