Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Github: How to pull changes to your own repository
02-16-2013, 04:14 PM (This post was last modified: 02-16-2013 04:57 PM by Apology11.)
Post: #1
Github: How to pull changes to your own repository
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?
Find all posts by this user
Quote this message in a reply
02-16-2013, 06:24 PM
Post: #2
RE: Github: How to pull changes to your own repository
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]
Find all posts by this user
Quote this message in a reply
02-17-2013, 01:56 PM
Post: #3
RE: Github: How to pull changes to your own repository
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.
Find all posts by this user
Quote this message in a reply
02-17-2013, 04:38 PM
Post: #4
RE: Github: How to pull changes to your own repository
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]
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: