Contributing on GitHub

Collabocats

After you forked a project and merged back to the original, you can simply delete the forked project.

If you are like me, I always forgot to delete the forked project. When I need to contribute again, I need to bring my forked project up to date with the original source.

There are two ways to do.

  1. Deleted the forked project and fork again.
  2. Bring the forked project up to date with the original.

The #1 is easy.

The #2 is also easy with command line.

In order to bring the forked project up to date, do the following:

  1. git checkout master
  2. git pull ssh://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git master
  3. git pull origin master

The above steps are assume no conflict. If there is, you need to take care of it. A more detail instruction can be see from GitHub Help.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.