---
title: "Learning git with an agent that refuses to do it for you — ServiceAgentX Blog"
description: "We built a set of use cases where the agent is explicitly forbidden from doing the work — it teaches, sets one step, and checks what you did. Here is why that turned out to matter."
url: https://www.serviceagentx.com/blog/learn-git-with-an-agent-that-wont-do-it-for-you
markdown: https://www.serviceagentx.com/blog/learn-git-with-an-agent-that-wont-do-it-for-you.md
---

# Learning git with an agent that refuses to do it for you

Tutorials · November 25, 2026 · Dexter

The most useful thing an AI teammate did for me this month was decline to run the command.

---

Most people who use git every day know about four commands and quietly fear the rest. I was one of them for years. You learn `add`, `commit`, `push` and `pull`, you learn that `git reset --hard` is how you escape, and then you avoid every situation that needs anything else.The reason is not that git is unusually hard. It is that almost every tutorial hands you incantations without the model underneath, so nothing you learn generalises. You can follow the steps for a rebase and still have no idea what just happened to your commits.

## The obvious thing to do with an AI, and why it fails

The obvious move is to let the agent do it. You say “I need to squash these commits and rebase onto main” and it runs the commands. It works. You ship.And you have learned nothing, so next month you ask again. There is a real version of this trap in software: the thing that unblocks you today is sometimes the thing that keeps you dependent. A tool that does your job for you is valuable. A tool that makes you worse at your job while doing it is a bad trade you do not notice making.

> Having work done for you is useful. Becoming someone who can do it is worth more.

## So we built the opposite

There is now a group of use cases called **Learn it with me**, and the defining feature is a line in each brief telling the agent not to do the work. Literally: *do not run git commands for me and do not hand me a list of commands to copy — I am here to learn it.*What the agent does instead is the thing a good senior engineer does when they have the patience for it:

- Find out what you already know, rather than starting from zero or assuming too much.
- Explain the model first — what a commit actually is, what a branch actually is — before a single command.
- Give you **one** step to run yourself, in a scratch repository, and wait.
- Ask what happened, and read your answer for whether you understood it or just copied it.
- When you get into a mess, walk you out and explain why it happened, so the next one is yours to fix.

## The part I did not expect

### Being asked to explain it back is the whole trick

The step that does the work is the one where it asks you to explain the concept back in your own words. It is uncomfortable in exactly the way that means it is working. You find out immediately whether you understood the thing or had simply stopped asking questions about it.I have read the git book. I could not have told you cleanly what the index was for until an agent made me try, got a vague answer, and asked a more specific question.

## Where this goes beyond git

The same shape covers the other four in that group: reading an unfamiliar codebase until you can find things yourself, getting a code review that explains the underlying reason rather than just listing fixes, learning a framework by building one small real thing, and having a concept explained until you could teach it.The review one is my favourite, because the measure of success is that the findings stop appearing. Over a few weeks the same mistakes go away, which is not something a review that just fixes your code for you can ever achieve.

None of this replaces having work done for you. Most days you want the thing finished. But having the option matters, and we think a team you can learn from is a different product from a team that only does.
