MCU單晶片韌體設計

2016年10月13日 星期四

在GitHub 建立Organizations


GitHub 上有種類型帳號


Personal User Account 與 Organization Account

Your user account is your identity on GitHub. Your user account can be a member of any number of organizations, regardless of whether the account is on a free or paid plan.

什麼是組織?

組織的目的就是方便對GitHub上進行階層性的程式碼管理。

可以在組織下長Repository,而不是個人帳號下長Repository。 建立組織後,可以邀請其他人加這個組織中。不同組織可以有自己的名稱,再由不同組織去長出一堆Repository。

組織的角色除了Owner以外, 就是成員(Member), Owner也可以有很多人。 Owner 可以可以邀請其他人加入這個組織, 並對不同成員給予不同的權限, 也可以指定某些成員變成組織的Owner。

成員的權限, 包含是否可以建立Repository或是可讀可寫(clone+push+pull)或僅能唯讀(clone+pull)。

組織中的人可以自由選擇離開這個組織,但一個組織至少得有一個人存在, 這個人就是Owner,
因為一個組織必須至少隸屬於某一個Owner帳號。倘若最後一個Owner也要離開此組織是不允許的, 你只能直接刪除組織。

建立組織的方式:

(1)  從申請的個人User帳號, 去建立一個組織(Organization),則此時這個Personal 帳號就是目前組織中唯一的owner,

(2)
從既有的User帳號(可能早已包含一堆Repository), 轉為組織 (前提是這User帳號不可以存在於任何組織中), GitHub會自動將原個人帳號所包含的全部Repository 掛在這個組織下。(小心!則此時Personal 帳號就無法再用了, 因為已經變成組織了, 所以你必須再轉換前, 事先申請好另一個GitHub帳號, 然後建立組織時, 把這個事先已申請來的帳號, 成為這個組織的Owner, 等於反過用這個帳號來管理這個從user變成組織的組織。

建構組織的流程

Step 1:Set up a personal account
Step 2:Set up the organization
Step 3:Invite members to organization

Personal user accounts

Every person who uses GitHub has their own user account. These accounts include:

Organizations

Organizations are great for businesses and large open-source projects that need multiple owners and admins. They include:
Organizations paid plan:

  1. Unlimited members and public repositories for free.
  2. Unlimited private repositories at $25/month for your first 5 users. $9/month for each additional user.

沒有留言 :

張貼留言