個(gè)人賬號(Personal user account)
- user 賬號是個(gè)人登錄 github 所使用的;
- user 可以創(chuàng)建自己的 repository;
- user 可以創(chuàng)建、加入多個(gè) organization;
- 在一個(gè) organization 中可以加入多個(gè) team;
- user 賬號可以轉(zhuǎn)變?yōu)?/a> organization 賬號,反向則不行;
You will no longer be able to sign into xyz (all administrative privileges will be bestowed upon the owners you choose);
Any user-specific information (OAuth tokens, SSH keys, Job Profile, etc) will be erased;
Any commits credited to xyz will no longer be linked to this GitHub account; - 通常的做法是先注冊一個(gè) user 賬號,在這個(gè)賬號下創(chuàng)建一個(gè) organization,你就是這個(gè) organization 的 owner;
組織賬號(organization account)
- organization 賬號主要適用于商業(yè)用途和大型開源項(xiàng)目;
- organization:team,Team-based repository access permissions,billing;
- team:由若干 member 組成,參與若干 repository;
- team 是 organization 內(nèi)部的管理內(nèi)容,不對外公開;
- repositories 權(quán)限的細(xì)致劃分:read(讀|clone|pull)、write(寫|push)、admin(加成員);
- billing 賬單的管理;
- organization 是不能登錄的,其所有管理權(quán)限都由其 owner 來行使;
- What's the difference between user and organization accounts?
組織的 People
- 對一個(gè) organization 來說,有兩類人:Members 和 Outside collaborators;
不論 member,還是 outside collaborator,都是 collaborator(協(xié)作者) - 都可以是 repositories 的 contributors;
- Outside collaborators 不可以創(chuàng)建 repository;
- 可以設(shè)置是否允許 members 創(chuàng)建 repository;
- 在 organization 的 People 管理面板,可以設(shè)置是否公開 member 的成員身份;
如果設(shè)置為公開,則其他人可以在 organization 的 People 頁和你的個(gè)人 Profile 頁看到; - 對 member 來說,owner 和 其他 member 任何時(shí)候都可以知曉你的成員身份;
Repository 庫
- Repository 要么屬于一個(gè) user,要么屬于一個(gè) organization;
- Repository 可以有任意個(gè) Contributors;
- Repository 可以轉(zhuǎn)讓給任一個(gè)人或組織;
庫的 Contributors
- 只要庫中有你提交的代碼,則你就是一個(gè) Contributor;
- 在庫的 Code 和 Graphs 面板都有 Contributors 入口;
個(gè)人設(shè)置(Personal settings)

點(diǎn)擊 Settings 進(jìn)入 Personal settings、Developer settings 和 Organization settings

Personal settings、Developer settings 和 Organization settings
組織設(shè)置(Organization settings)
擁有者(Owner)登錄后,從組織的首頁,點(diǎn)擊 Settings 即可進(jìn)行設(shè)置;

組織設(shè)置(Organization settings)
組織 Repository 設(shè)置

組織倉庫:Collaborators & teams
- teams 基于 team 來設(shè)置權(quán)限,通過 team 解決組織內(nèi)成員訪問庫權(quán)限問題;
- Collaborators 非組織成員的協(xié)作者;
- 受邀 Collaborator 查看郵件,點(diǎn)擊邀請鏈接即可加入;
個(gè)人 Repository 設(shè)置

個(gè)人倉庫:Collaborators
- 凡是 Collaborator 都是 push 權(quán)限;