Lesson 4: Git, a memory for the BrightCart project
16 min read·13 Oct 2026
Module 1 · Lesson 4 · About 40 minutes · Needs: Lesson 3 (the project folder; running a terminal command from Python)
The situation
The BrightCart folder from Lesson 3 holds brightcart/answer.py, with the first answer(question) function. Priya wants the prompt to say "I do not know" when the policies do not cover a question. Dev wants a timeout on the model call. Both of you edit the same file.
By Friday the shared drive holds answer.py, answer_v2.py and answer_final.py. Nobody can say which one runs, what Dev changed, or how to get Monday's version back. The project has no memory. This lesson gives it one, with Git.