Git & GitHub Course
Git & GitHub
/
Intermediate

Teams & Organizations

Definition

GitHub Organizations are shared accounts where businesses and open-source projects can collaborate across many projects at once. Teams are groups of members within an organization that reflect your company or group's structure.

Explain Like I'm New

If you are coding alone, you use your personal account. If you start a company called 'TechCorp', you create a GitHub Organization called TechCorp. You then create a Team called 'Frontend' and add 5 developers to it. You can now give the entire 'Frontend' team access to 10 different repositories with one click.

Real World Example

Facebook is an Organization on GitHub. Inside it, they have hundreds of repositories like `react`, `jest`, and `react-native`, managed by different teams.

Common Use Cases

  • •Enterprise management
  • •Scaling permissions

Terminal Output

bash / terminal
// Hierarchy of GitHub Enterprise/Organizations: /* Organization: TechCorp Inc. │ ├── Team: Frontend Developers (@TechCorp/frontend) │ ├── Member: Alice │ └── Member: Bob │ ├── Team: Backend Developers (@TechCorp/backend) │ └── Member: Charlie │ ├── Repository: techcorp-website (Frontend Team has Write access) └── Repository: techcorp-api (Backend Team has Write access) */

Interview Questions

basic

  • What symbol is used to 'tag' a team in a PR comment to notify all of them?

intermediate

  • Can a GitHub user be a member of multiple Organizations?

Flash Cards

Question

Tag symbol?

Click to reveal answer
Answer

The `@` symbol. Example: `@TechCorp/frontend-devs please review this PR.`

Question

Multiple orgs?

Click to reveal answer
Answer

Yes. A single GitHub user account (like `@johndoe`) can belong to your personal projects, your employer's organization, and an open-source organization simultaneously.