pedz
pedz

Reputation: 2349

Getting access to branches in linked repositories on Github

I have a github repository pedz/ruby which is a fork from shyouhei/ruby which is a fork from ruby/ruby.

ruby/ruby has a branch called 1_9_3 that shyouhei/ruby does not have.

Is there a way for me to get access to the 1_9_3 branch of ruby/ruby?

Note that I can not fork ruby/ruby -- at least I don't know how. The normal "fork" button has been replied with a "your fork" button when I'm on the ruby/ruby page. Hitting that button puts me on my pedz/ruby page.

Upvotes: 0

Views: 82

Answers (1)

Seth Robertson
Seth Robertson

Reputation: 31461

If you want to get access the 1_9_3 branch on your local repository, then:

git remote add upstream url://to/ruby/repo
git fetch upstream
git checkout upstream/1_9_3

That will give you access to the branch locally. If you want that branch to be on shyouhei, then continue with:

git push origin 1_9_3

Upvotes: 1

Related Questions