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 Git Basics Working With Remote Repositories GitHub

Tati Belikova
Tati Belikova
14,117 Points

if to use a repository from GitHub, should I use repository from the original user or should i use forked version?

For example if I want to use GIT FLOW, should i use forked version or original and why?

1 Answer

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Hi, Tati Belikova

Pretty much there're only 2 scenarios that require you to fork a project.

  1. You wanna contribute to a Github repo which you don't share administrative right, then you must fork the project, make some changes, commit them, and send a pull request to original repo's owner asking them for a merge.
  2. You wanna use someone else's project as starting point for your own, and continue working from there. For example, the io.js project was a fork of Node.js, because some developers aren't happy about the direction Node.js is heading, so they decided to go their own way by forking the project and continue improving it as they see fit.

besides these 2 scenarios, I can't think of any other reason to make a fork, regardless of which Git workflow you choose.