DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

How to Sync a Fork on Github


I forked flask repository to my own account.

After several months, there are many new commits to the original flask repo. How to sync these new commits to my fork?

Option 1: In Github Web UI

Three steps: compare, send pull request, and merge.

See Olufemi Israel Olanipeku's answer of How can I keep my fork in sync without adding a separate remote? for details.

Option 2: In Terminal

You can do it via your local clone:

  1. Clone leetschau/flask to local machine;

  2. Add mitsuhiko/flask as a remote repo;

  3. Pull new commit from mitsuhiko/flask to your local machine;

  4. Push your local repo to leetschau/flask.

See Syncing a fork for details.



Published

Apr 15, 2015

Last Updated

Apr 15, 2015

Category

Tech

Tags

  • github 6
  • sync 6

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor