Lesson 20 / 20

Organizations & Teams

Manage shared repositories with organizations, teams and least-privilege repository permissions.

Organizations

An organization is a shared account that owns repos for a company or project, separate from any one person's account.

Teams & permissions

Teams group members and get repo permissions (Read, Triage, Write, Maintain, Admin) assigned all at once instead of per person.

Least privilege

Grant the minimum permission level needed — most contributors only need Write, not Admin.

Quick check: Which organization permission level lets someone push code but not change repo settings?

  • Read
  • Admin
  • Write
  • Owner only
Answer

Write — Write allows pushing and managing issues/PRs, while changing repo settings requires Admin.

Final quiz 1 of 8

Final quiz

Quick check: How are Git and GitHub related?

  • They are the same program
  • Git runs only on GitHub
  • GitHub hosts Git repositories and adds collaboration features
  • GitHub replaces Git
Answer

GitHub hosts Git repositories and adds collaboration features — Git is the version-control tool; GitHub is the hosting platform.

Final quiz 2 of 8

Final quiz

Quick check: Which command copies a remote repository with its full history?

  • git remote add
  • git commit
  • git stash
  • git clone
Answer

git clone — clone also sets up origin.

Final quiz 3 of 8

Final quiz

Quick check: What is a pull request?

  • A request to review and merge changes
  • A download command
  • A backup
  • A branch deletion
Answer

A request to review and merge changes — It proposes merging one branch into another.

Final quiz 4 of 8

Final quiz

Quick check: Which keyword closes issue #42 on merge?

  • See #42
  • Fixes #42
  • About #42
  • Ref #42
Answer

Fixes #42 — Closing keywords auto-close linked issues.

Final quiz 5 of 8

Final quiz

Quick check: Which merge strategy combines all branch commits into one?

  • Merge commit
  • Rebase
  • Squash
  • Cherry-pick
Answer

Squash — Squash keeps main's history compact.

Final quiz 6 of 8

Final quiz

Quick check: Where do GitHub Actions workflow files live?

  • actions/
  • ci/
  • .git/
  • .github/workflows/
Answer

.github/workflows/ — GitHub detects YAML files in that folder.

Final quiz 7 of 8

Final quiz

Quick check: What do branch protection rules do?

  • Require reviews and passing checks before merge
  • Hide the branch
  • Delete old commits
  • Speed up CI
Answer

Require reviews and passing checks before merge — They stop direct pushes and force-pushes to protected branches.

Final quiz 8 of 8

Final quiz

Quick check: Which permission should most contributors get?

  • Admin
  • Write (least privilege needed)
  • Owner
  • None
Answer

Write (least privilege needed) — Grant the minimum level required.