Git & Collaboration
Version control is not optional. Every experiment, every model, every lesson you build here gets tracked. Configure git identity and use the daily workflow of add, commit, and push. Create and merge branches for isolated experiments without breaking main. Write a .gitignore that excludes model checkpoints and large binary files. Navigate the commit history with git log to understand project evolution. You're about to write hundreds of code files across 20 phases. Without version control you will lose work, break things you can't undo, and have no way to collaborate with others. Git is the tool. GitHub is where the code lives. This lesson covers what you need for this course and nothing more. Three things to remember: Save often (git commit). Push to remote (git push). Branch for experiments (git checkout -b experiment). You can't push to the course repo itself — only maintainers have write access. Fork it on GitHub first (the Fork button, top right) so origin points at your own copy: For this course, you need exactly these commands: That's it. You don't need rebase, cherry-pick, or submodules for this course. Fork this repo, clone your fork, create a branch called my-progress, make a file, commit it, push it. Create a .gitignore that excludes model checkpoint files (.pt, .pth, .safetensors). Look at the commit history of…
Git & Collaboration: Version control is not optional. Every experiment, every model, every lesson you build here gets tracked.
This free lesson is part of the AI Engineering from Scratch curriculum. Read the full explanation, run the lesson code, and verify the result in the interactive reader or from the repository source.
Browse the complete course catalog or open this lesson on GitHub.