Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Github: How to pull changes to your own repository
#1
I have a question regarding github:

I forked the ppsspp repository to make some changes.
But now I want to update it again so I have all the commits and changes till now on my repository too.
Is there a way to updated it to my repository directly?

I know I can fetch changes from the original repo, pull them to local branch and push them to my own repo finally. But than I take a circuit over my PC, but I want to pull the changes directly to my repo on github. Is that possible?
Reply
#2
I do it locally. Just for other people who might find this topic, here's what I do:

Code:
# Initial clone. git clone https://[email protected]/unknownbrackets/ppsspp.git cd ppsspp # Add the main upstream remote, I also have Orphis, Xele02, etc. git remote add upstream https://github.com/hrydgard/ppsspp.git # I like to be specific when I pull, rather than using git pull. git fetch upstream git rebase upstream/master # Sometimes I try out other people's stuff. git fetch Orphis git checkout -b dlist-rewrite Orphis/dlist-rewrite

Anyway, the way to avoid going through local is a pull request. Something like this:

https://github.com/Apology11/ppsspp/pull...ard:master

You'll have to create the pull request and then submit it. But ultimately, you'll still have to pull down the changes at least to your local, of course.

-[Unknown]
Reply
#3
Thanks! Thats what I was looking for.
Didn´t know you can make a pull request from a repo that doesn´t belong to you.
Reply
#4
You could even submit a pull request from one of my branches to hrydgard's master. But the UI makes this very uncommon case somewhat hard so I usually type such things in the URL if needed.

-[Unknown]
Reply


Forum Jump: