Git for Engineers — Level by Level›Level 3 · Cheat sheet & self-check

Level 3 — Git for platforms · wrap-up

Cheat sheet & self-check

6 questions across 2 lessons. Each answer links back to the lesson it came from.

Pick an answer to see if you got it, and why.

  1. Q1. What does a CODEOWNERS file do?

    Show answer

    B. Combined with branch protection, changes to prod/ or the network layer can't merge without the owning team's approval.

    From lesson 07 · Repositories for infrastructure and GitOps
  2. Q2. A secret was committed and pushed an hour ago. What's the first step?

    Show answer

    B. Assume it's already copied (clones, CI logs, forks, scanners). Rotation makes the leaked value useless; history clean-up comes second.

    From lesson 07 · Repositories for infrastructure and GitOps
  3. Q3. Why run checks as pre-commit hooks AND in CI?

    Show answer

    B. Local hooks save time; CI guarantees the rule. Use both with the same configuration.

    From lesson 07 · Repositories for infrastructure and GitOps
  4. Q4. A CI job only needs to build the latest commit. How should it clone?

    Show answer

    B. Shallow clones cut clone time and bandwidth dramatically. Jobs that compute versions from tags may need more depth or a fetch of tags.

    From lesson 08 · Large repos and troubleshooting
  5. Q5. Why is committing large binary files (ISOs, model files) to normal Git a problem?

    Show answer

    B. Git history is append-only; big binaries make every clone and fetch heavy. LFS stores pointers in Git and content elsewhere.

    From lesson 08 · Large repos and troubleshooting
  6. Q6. git push fails with 'Updates were rejected because the tip of your current branch is behind'. Fix?

    Show answer

    B. Someone pushed before you. Integrate their work; force-pushing would delete it.

    From lesson 08 · Large repos and troubleshooting