You do not need to become a Git expert to protect work created with Codex or Claude.

You need three simple habits:

  1. know which project you are in;
  2. review what changed;
  3. save a named recovery point before moving on.

Git is the system that keeps that history. GitHub can keep another private copy and provide a clear review screen. Your agent can handle the commands and explain the result.

Who this is for

This guide is for managers, founders and organisational leaders who create documents, analysis, websites or software with Codex or Claude.

You are responsible for the outcome, but you are not a technical specialist. You want a recoverable working habit without learning a terminal language first.

Before you start

You need:

  • a GitHub account with two-factor authentication;
  • GitHub Desktop or an approved agent that can use Git for you;
  • a new private practice project;
  • no company secrets or important files;
  • and about 30 minutes.

Private means access is restricted. It does not mean mistakes are impossible.

What you will learn

By the end, you should be able to:

  1. explain Git and GitHub in ordinary language;
  2. ask your agent to check the exact project before changing it;
  3. review a plain-language summary of changes;
  4. save a named recovery point;
  5. keep a private copy on GitHub;
  6. ask for help when local and shared work do not match;
  7. restore an older file without erasing the story.

The four words you need

WordPlain-English meaning
ProjectThe folder containing this piece of work
ChangeThe exact difference since the last saved point
CommitA named recovery point saved on your computer
GitHubA separate online home for the project's history and review

You may hear repository, branch and diff. They mean the tracked project, a separate line of work and the exact changes. Your agent can manage these and explain them when they matter.

The safe loop

The editable source for this diagram is Mermaid plain text. See why that works for people and agents.

Step 1: Create a harmless private practice project

On GitHub, create a private project called safe-practice. Add a README, which is simply the project's front page.

Check:

  • the correct account owns it;
  • it is marked Private;
  • nobody unexpected has access;
  • two-factor authentication is on.

Do not learn on the only copy of important work.

Step 2: Ask the agent to open it safely

Use GitHub Desktop to copy the project to your computer, or ask Codex to guide you through opening it.

Then paste:

The tool is doing the technical check. You are checking that its explanation matches your intention.

Step 3: Make one tiny change

Ask:

Before it edits, ask for a one-sentence plan.

Afterwards, ask:

The answer should name one file and one sentence.

Step 4: Save a named recovery point

Say:

The technical name for that recovery point is a commit.

Then ask:

Step 5: Put the recovery point on private GitHub

Say:

Open GitHub in your browser. Check that the sentence and recovery-point name are visible in the private project.

That browser check is important. A confident message is not the same as seeing the right result in the right place.

Step 6: Check before every new session

At the start of later work, ask:

If the tool says the histories disagree, stop. Ask for a simple explanation of the choices. Do not approve words such as force, reset or delete merely to make the warning disappear.

Step 7: Restore an older file safely

To practise recovery, make a second harmless change and save it.

Then ask:

If it is the version you want, say:

This creates a new recovery point. It does not pretend the later work never happened.

What your agent checks for you (optional)

Behind the scenes, the agent checks:

  • the project root;
  • unfinished file changes;
  • the active line of work;
  • the private GitHub destination;
  • and the exact difference before and after saving.

These checks are often called status, branch, remote and diff. You do not need to type the commands. You do need a clear explanation before you approve a save or upload.

Hands-on exercise: one change and one recovery point

  1. Create the private safe-practice project.
  2. Ask the agent to confirm the account, project and unfinished work.
  3. Add the one approved sentence.
  4. Ask for an exact plain-language change summary.
  5. Save the named local recovery point.
  6. Send it to the private GitHub project.
  7. Verify it in your browser.
  8. Ask the agent to show the earlier version without changing anything.

The exercise is complete when you can see the approved sentence on private GitHub and the agent can show the earlier version.

Verification checklist

  • [ ] Two-factor authentication is enabled.
  • [ ] The practice project is private.
  • [ ] The agent confirmed the correct account and project.
  • [ ] There was no unexplained unfinished work.
  • [ ] Only the approved sentence changed.
  • [ ] The recovery point has a clear name.
  • [ ] The private GitHub page shows the same change.
  • [ ] No password, token, customer data or private document was included.
  • [ ] The agent can show an earlier version without deleting history.

Common mistakes and safe recovery

MistakeWhy it mattersSafe recovery
Working in the wrong projectCorrect work changes the wrong placeStop and ask the agent to preserve and identify the work before moving it
Saving every changed fileUnrelated or private material joins the recovery pointAsk the agent to list each file and include only the named one
Uploading to the wrong accountCompany or personal work crosses ownershipStop, restrict access and tell the information owner
Combining unexplained historiesSomeone's work may be overwrittenPreserve both versions and ask for a plain-language comparison
Saving a passwordProject history may retain itRevoke it immediately and follow GitHub's removal guidance

Do not solve uncertainty by deleting files or forcing an upload.

Ready-to-copy prompt

Do this now

  1. Create a harmless private GitHub project.
  2. Open it with Codex or GitHub Desktop.
  3. Paste the ready-to-copy prompt.
  4. Make one sentence change.
  5. Save and verify one named recovery point.

Your next step

Repeat the safe loop until checking the project, reviewing the change and saving a recovery point feel routine.

Then continue with:

Sources and notes