Part 02 / Topic 6 of 6
Git for customer work
You will often commit into the customer's repository, under their review process. The bar is higher than on a solo project:
- Small branches, one change each. A 40-file pull request from an outside engineer reads as risk, not progress.
- Commit messages others can read. First line: what and why —
Add retry with backoff to shipment sync (Acme API returns transient 503s). The reviewer was not in your head. - Pull requests that explain context. Link the decision or ticket; state what you tested. You are building the paper trail the customer keeps after you leave.
- Never commit data or secrets. Customer data in a git history is a security incident, and git history is forever.
.gitignoredata directories and.envfiles on day one.
🧪 Quick quiz
- Where should a script get the customer's API token?
Show the answer
From an environment variable or a secret manager. Secrets in source code end up in repositories, screenshots and logs.
Done here? The practice set for Part 2 — 4 exercises with solutions — is on the part page.