Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools GitHub Basics Get Involved in Open Source Creating Your Own Fork of an Open-Source Repository

What happens if we forked a repo and at the same time the main project repo has updated?

Hi everyone,
As I wrote in the title, what happens in this situation? I understand that when we have full access to the repo, we can fetch and pull the changes, but when we forked our repo we out-of-date...
It does not make sense, and I probably miss something so thanks in advanced for your help!

3 Answers

Kevin Korte
Kevin Korte
28,149 Points

There are ways to do that with git, you just have to do so manually, but there are some commands to make it easy: https://help.github.com/articles/syncing-a-fork/

Thanks Kevin

Chris Komaroff
PLUS
Chris Komaroff
Courses Plus Student 14,198 Points

I was wondering about that! GitHub fork can rapidly become out-of-date. Thanks, Kevin, and remember to "git remote add upstream <url>" as described in the other link doc for this to work.