Github: code view required

I am the prime minister of a private project, and I would like to do the following on github:

  • Only I can merge branches back to the leading branch or the "production" branch
  • Every other developer must check my commits before I can merge my branches with a "master" or "production"

I read about branching on github and thought that this was for private projects because it requires a β€œpublic” URL: we do not plan to release the source code yet, so our repos should remain confidential at all times. I saw a mention of the general repository model, but there is no literature on this.

Can someone kindly enlighten me?

+4
source share
3 answers

For example, any GitHub project (closed or not) is a common repository.
Private repo is distributed among selected several employees.

The idea, however, would be to

  • remodel this private project (this should also apply to a private project)
  • declare developers as co-authors (they can directly click on the wizards of this GitHub cloning project or any other branch)
  • get them to pull requests to your original private github project

Thus, you can view any patch that they want to include in the main branch of your project, through the fork queue .

+4
source

If by chance you work as Organization , the Github commands are for this purpose . . Create an owner command only with you (should be the default). Create a development team, but with read-only access to your main repo.

Developers can unlock your private repo (forks will also be closed) and can click on their forks. They cannot put pressure on you. So, to contribute, they click on their forks, sending you requests for traction.

+2
source

As far as I know, there is no rights management for merging and forking.
Scrolling and pulling requests are for individual stores (mainly for open development of varieties).

A common repository model means that everyone has push and pull rights in the same repository, but their own branching is used to edit it. Only one (you) is allowed to merge with the master. But there will be no mechanism to control this.

0
source

Source: https://habr.com/ru/post/1334809/


All Articles