Posted by: terryhowe | March 14, 2015

Regular Git Pull Requests

I’ve been doing so much OpenStack work lately, I’d forgotten how to do regular old git pull requests from a fork.  A little refresher, add the upstream repo:

git remote add upstream

Verify it is there:

git remote -v

Update local information:

git remote update

And now you can see the upstream branches:

git branch -a

Update the local branch to upstream:

git reset --hard upstream/master

Push the upstream to fork ignoring the fact that it won’t be a fast forward:

git push origin +master


Leave a Reply

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

You are commenting using your 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


%d bloggers like this: