Building Apps with AILesson 43 of 87

Module 5 · Save points, and shipping to a stranger

Letting the agent use git, within limits

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 7 of 11 in this chapter

This chapter’s goalKeep a project in git well enough to undo any hour (stage part of a change, restore one file, revert a pushed commit, recover from a bad reset, branch for an agent’s work and merge it back) and put the app on a free host with a real domain, environment variables scoped per environment, and a version stamp that says which commit is live.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Agents run git now

Claude Code, Cursor’s agent mode, Copilot’s agent and the terminal tools all run shell commands, and git commands are shell commands. Left to themselves they will stage, commit, stash, reset and occasionally push. Replit, Lovable and Bolt commit to their own checkpoint systems, which is a different thing but raises the same question: what is the tool allowed to do to your history?

The answer belongs in the rules file from the first block, in plain words the tool reads every session.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Building with AI exam.

Stuck on something?Ask Beatriz, your AI tutor

How to cite: Addaly (2026) ‘Letting the agent use git, within limits’, in Building Apps with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-apps-with-ai/letting-the-agent-use-git (Accessed: 29 November 2026).