Furkan Gözükara
Furkan Gözükara

Reputation: 23830

How can i fetch unmerged pull requests that i do not own?

I am using Windows and GitHub on Windows.

First I have created a repository like this:

1repo

Then I have right clicked and clicked open git-shell:

2opening shell

This is the master branch that I want as base:

https://github.com/FeroxRev/Pokemon-Go-Rocket-API

Then I have copy pasted this command to gitshell for clone it:

git clone https://github.com/FeroxRev/Pokemon-Go-Rocket-API

3demonstration

Ok now it is properly cloned.

Now what I want to do is merging for example this pull request to my local repository: https://github.com/FeroxRev/Pokemon-Go-Rocket-API/pull/53.

What command do I need?

This is the branch i want to merge with my local repo

https://github.com/martin-podlubny/Pokemon-Go-Rocket-API/tree/transfer-all-but-strongest-unwanted-pokemon

Upvotes: 2

Views: 1300

Answers (2)

rocambille
rocambille

Reputation: 15976

The pull request points to a branch in a fork: you can fetch this fork.

git fetch https://github.com/martin-podlubny/Pokemon-Go-Rocket-API
git merge transfer-all-but-strongest-unwanted-pokemon

Upvotes: 2

Dylan Wheeler
Dylan Wheeler

Reputation: 7074

GitHub provides some nice documentation detailing how to merge pull requests here:

https://help.github.com/articles/merging-a-pull-request/

No commands required. However, make sure that after you merge on your repo, you checkout the changes on your local machine so that you are up to date with HEAD.

Upvotes: 2

Related Questions