Interview Q&A / Git & GitHub
Git & GitHub interview questions
Branching, merge vs rebase, resolving conflicts and pull requests, the way teams actually work.
Prefer rapid revision? Practise Git & GitHub short interview answers →
- How do you use secrets such as API keys in GitHub Actions safely?
Store them under repository Settings, Secrets and variables, then read them in the workflow as secrets.NAME. GitHub masks their values in logs, and they are not passed to workflows from forks by default.
IntermediateQuick answer1 min read - What is a CODEOWNERS file in GitHub?
CODEOWNERS maps file paths to people or teams. GitHub automatically requests their review on pull requests touching those paths, and with branch protection their approval can be mandatory.
IntermediateQuick answer1 min read