GIT
Github organization 만들기 (+ 협업하던 레포 가져오기)
구니바
2024. 6. 26. 18:12
Github organization 이란?
기업과 오픈소스 프로젝트가 동시에 여러 프로젝트에 걸쳐 협업할 수 있는 공유 계정이다. Github organization 계정을 사용하면 깃허브에서 협업할 수 있다. 공식문서는 여기서 확인할 수 있다.
Github organization 사용 계기
팀원이 개인계정에 레포를 만들고 개개인별로 fork 후 fork 한 레포를 가지고 origin과 upstream을 설정해 pr로 합치는 과정을 통해 충분히 협업이 가능하다고 생각해서 그렇게 진행하고 있었다. 하지만, github actions를 위한 settings 에 접근이 불가능했고, 이와 같은 이유로 organization 계정을 만들기로 했다. 즉 권한관리에 불편함을 느껴서 organization을 사용하게 되었다.
그외에도 아래와 같은 이유로 organization 사용한다.
- 이슈와 Pull requests 관리
- 프로젝트 관리
- 보안 및 엑세스 제어
Github organization 의 역할
자세한 역할별 권리는 여기서 확인할 수 있다.
- owner
- member
- moderator
- billing manager
- security manager
- github app manager
- outside collaborator
Github organization 만드는 법
1. New organization을 만들고 Free를 선택한다.
2. set up organization
3. 팀원들 초대
people에서 추가 삭제 및 역할 변경을 할 수 있다.
Github organization 에서 본인 삭제하기
1. Your organizations
2. leave
3. 마지막 owner라면 organization을 삭제
3-1. Settings > General
3-2. Delete this organization
Github organization 에 협업하던 Repository 가져오기
1. Create a new repository > Import a repository
2. 협업하던 레포 URL 복붙 > Owner 를 해당 organization으로 설정 > 레포 이름 설정
[참고자료]
About organizations - GitHub Docs
Organizations are shared accounts where businesses and open-source projects can collaborate across many projects at once, with sophisticated security and administrative features.
docs.github.com