Android github github rights management quickly realized many people work together

Quote from: https://www.cnblogs.com/zhaoyanjun/p/5882784.html

Preface:

In the previous article in Android github many people work together to achieve rapid  (http://www.cnblogs.com/zhaoyanjun/p/5829142.html) describes the function of how fast to achieve more than collaboration.

Its advantages are: simple and fast to use. The disadvantage is: There is no way to achieve access control. Why would access control? This is a pain egg problem, because we need to open the project for security reasons on the part of people read-only permission (only read, clone); or to open some people write permissions (can only be read, clone, push); or administrator rights on the part of people open (only read, clone, push, add members to the warehouse). In fact github management of rights only four, the first three are the permissions Admin (administrator), Write (write-only), Read (read-only). The final authority rather special, it is the creator of the organization, has the right of supreme.

 

text:

To find out github rights management, you need to understand a few concepts. organization ( organization ), Repository (warehouse), Team ( Team ) . 

In understanding these concepts, listen to me tell a little story. Saying There was once a businessman, because he smart and capable, he opened a fruit stand, tea shops, and a cafe. Blink of an eye 10 years later, he has accumulated a lot of money, but also with very fast hardware rights in general is rich and powerful it was, Ever since the day he led 100 brothers set up a mafia organization: the Green Gang. After the organization was founded, he put 100 into four brothers team, each team 25 people. After the team was established, the brothers can not sit and starve it, Ever since he has opened a ktv, a supermarket, a large foot care. So the question becomes, how to make four team took these three projects, there must be clear lines of authority control, if access control shall not be treated, there will be problems his brother each other seats and seize territory. A project can have multiple management team, a team can control multiple projects, so many to many relationship between the team and the project.

  • The story of the role of asset analysis

Businessman owned assets: three items: fruit stand, milk food stores, Internet cafes.

                           An organization: Green Gang

Green Gang organization owned assets: three projects: Ktv, supermarkets, big foot care

                              4 team

Note: fruit stand, milk food stores, cafes assets belonging to these three projects only a businessman, not owned by any organization owned. It extends about, businessmen can again create a new project, such as a 4s shop; and he can then create a new organization, such as a flood to help the organization. Also in the flood to help the organization which can create more than one team.

You can now convert the ideas into github, a correspondence relationship

 

Businessman ->    you register github account

Fruit stand ->    Repository (warehouse)

Green Gang ->    Organization ( Organization )

Team -> Team ( Team )     

 


1, github combat - create an organization

In the story, a businessman can create projects and organizations. Corresponds to the user can be created on github repository and organizations.

 

Complete example

 

2, github real - Creating a warehouse in the organization

  Once you've created the organization to look at the structure of the organization

In Organ-Name organization, create a warehouse

 

 

3, github real - Create team in the organization

 After the team created, the default of a member of the team only one person is the account. The following began to add other members of the team.

After the invitation is successful, people need to be invited to their mailbox click, confirm the invitation

 

4, github combat - adding to the warehouse team in the organization and set permissions.

 

 You can see, warehouse control rights to the team, there are three

  • Admin Administrator rights (only read, clone, push, add members to the warehouse)
  • Write write permissions (can only be read, clone, push)
  • Read read access (only read, clone) 

 

In addition any of the Team for multiple organizations can use to add authority here have all been completed.

 

to sum up

  • You can manage through this article in a pleasant github usage rights, but not free to create a private github repository, this is a very serious problem. If the project is open source, there is no problem with github. If it is a private project, there are several ways you can meet the requirements

        1, on github pay for private warehouse.

       2, the use of open source more famous domestic Chinese git hosting services: https://git.oschina.net/   

       3, using GitLab, which need to be deployed on its own server. Portal: https://about.gitlab.com/gitlab-com/

Guess you like

Origin www.cnblogs.com/wangdadada/p/12046448.html