# Organizations & Teams — GitHub Fundamentals: Collaboration, Pull Requests and Actions

Source: https://www.skillbyai.com/en/github/gh-orgs-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.

**Quiz:** Which organization permission level lets someone push code but not change repo settings?

- [ ] Read
- [ ] Admin
- [x] 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

**Quiz:** How are Git and GitHub related?

- [ ] They are the same program
- [ ] Git runs only on GitHub
- [x] 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

**Quiz:** Which command copies a remote repository with its full history?

- [ ] git remote add
- [ ] git commit
- [ ] git stash
- [x] git clone

*Answer:* git clone. clone also sets up origin.

## Final quiz 3 of 8

Final quiz

**Quiz:** What is a pull request?

- [x] 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

**Quiz:** Which keyword closes issue #42 on merge?

- [ ] See #42
- [x] Fixes #42
- [ ] About #42
- [ ] Ref #42

*Answer:* Fixes #42. Closing keywords auto-close linked issues.

## Final quiz 5 of 8

Final quiz

**Quiz:** Which merge strategy combines all branch commits into one?

- [ ] Merge commit
- [ ] Rebase
- [x] Squash
- [ ] Cherry-pick

*Answer:* Squash. Squash keeps main's history compact.

## Final quiz 6 of 8

Final quiz

**Quiz:** Where do GitHub Actions workflow files live?

- [ ] actions/
- [ ] ci/
- [ ] .git/
- [x] .github/workflows/

*Answer:* .github/workflows/. GitHub detects YAML files in that folder.

## Final quiz 7 of 8

Final quiz

**Quiz:** What do branch protection rules do?

- [x] 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

**Quiz:** Which permission should most contributors get?

- [ ] Admin
- [x] Write (least privilege needed)
- [ ] Owner
- [ ] None

*Answer:* Write (least privilege needed). Grant the minimum level required.
