Keep My GitHub Fork Up-to-date

These only show you how to update the local copy. And, it’s assumed you’ll ONLY be merging the branch you are working on.

Christina’s Way:

She forgot to tell you that master has to be the locally checked out branch.

Also, the only two branches which will be merged are the origin/master and the upstream/master. The rest of the branches will hang around looking like duplicates in your GitHub.app GUI.

GitHub’s Way

Narf’s Cleaner Way

The part about cloning and changing the current directory, etc. are the same. But, instead of adding and fetching you’ll do:

This way you don’t get the duplicate branches (which are empty anyways.)

Narf’s advice about (other way) & (contribution)

Advertisements

About samehramzylabib

See About on https://samehramzylabib.wordpress.com
Image | This entry was posted in CI Source Code Explained, Configure My Systems, UNIX Command Line. Bookmark the permalink.

One Response to Keep My GitHub Fork Up-to-date

  1. Pingback: Important Git Facts | Sam's PHP

Comment

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s