Version Control & Git Workflow
Git is the shared memory of every engineering team. Beyond the basic commands (init, clone, add, commit, branch, merge, pull, push), what actually matters day to day is a feature-branch workflow with merge requests, resolving conflicts, and a .gitignore that keeps build artefacts, secrets, and compiled firmware out of the repository.
Starting Points
- Chacon, S., & Straub, B. Pro Git (2nd ed.). Apress, 2014 (free at git-scm.com).
- learngitbranching.js.org
- GitLab Docs. "Getting started with Git" and "Merge requests".
- Collaboration & agile fundamentals
Key Points
- You use Git locally to track changes, with clear, meaningful commit messages.
- You work with a remote repository: cloning, pulling from main, and pushing local commits.
- You implement a feature-branch workflow, including opening a merge request.
- You resolve basic merge conflicts by inspecting conflicting changes and completing the merge correctly.
- You use
.gitignoreto keep generated files, build artefacts, binaries, and secrets out of the repository. - You collaborate through GitHub or GitLab: reviewing changes, responding to comments, and using issues to coordinate work.