Always fetch upstream!

Welcome to n00bsland!

Everybody should remember where there come from. Including their repos.

Why you ask? Becase git merge :/

I recently edited a few files in my branch of a repo and created pull request. Well guess what? The master had moved forward.

So the usual-

1. Delete local repo

2. Add remote upstream

git remote add upstream

3. Update local copy.

git fetch upstream

4. Create changes (again >_<)

5. Commit and pull.

Don’t be a n00b, always add upstream repo.

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 )

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