简体   繁体   中英

Merge two forks in Git?

I am a beginner to Git and only use Git Bash for basic things. I mostly commit/push/whatever else inside my IDE or with TortoiseGit. I'm trying to do something rather like this , I think :. (bear with me here, I'm not sure if I'm using proper terminology...)

So here's the situation: There's a main branch on Github. (let's say it's at github.com/branchadmin/info.git). If someone wants to improve the code of the main branch, they create a fork and push their changes. If a developer of the main branch likes the changes that a user made, they push to the main fork. That's great and all, but what if the developer also changes something else? That leaves the user's repo out of date, and I haven't found a way to "merge" it. (correct terminology? idk)

Without having to delete the fork and start a new one in order to stay up-to-date, how could the user do such a "merge?"

Thanks to all in advance :)

That's a "pull" from "upstream". Github documents it well here: http://help.github.com/fork-a-repo/

Basic Branching and Merging

After you merged a branch, don't forget that these changes are local and you still need to push them to the github.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM