Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I fork or should I clone an organization's repository that I have push access?

Tags:

git

github

Currently I'm thinking about starting my own organization on Github to work on a few projects with a group of friends. Each one of us will have full access to every repository there. But since I've never been a member of an organization on Github, I'm not sure how to proceed.

Should each member fork the repositories they're working on and then send pull requests from their forked repositories back to the upstream repositories on the organization or should each one of us just clone the repositories from the organization and just push commits straight to them without a pull request?

like image 245
Jefferson Barbosa Avatar asked Nov 27 '25 23:11

Jefferson Barbosa


1 Answers

If you trust your friends that they will not break anything too often then just push to the organization repository.

The pull request model is suited for projects where you want to do code review. That includes open-source projects, where you of course do not want everybody to be able to push into your repository. It's usual that core dev team pushes directly and other developers use pull requests.

Both approaches can be combined - even if you use pull requests for your organization repository, someone can fork it and grant push access to this fork to others so they can push to this fork directly. After they are finished they can make pull request to the "main" repository.

like image 67
Messa Avatar answered Nov 30 '25 11:11

Messa