Learn

GuideCoding & Git

Git explained: follow a website change from draft to live

Git keeps a history of recorded changes to a project. That history helps you compare versions, work on separate ideas, and understand what changed when something goes wrong. The project and its Git history form a repository, often shortened to repo. [1]

You do not have to memorize Git commands to make useful decisions about your bot's work. You do need to know which changes are still drafts, which have been shared, and which are running on your website.

Our fictional example is a neighborhood plant-swap page. Its heading says “Saturday plant swap.” You ask a bot to add the time. A second bot is improving the directions.

Follow one change

These actions have different jobs. Some apps combine several behind one button, so ask what a button actually does.

ActionWhat it meansIn our plant-swap example
SaveWrite an edit into a file.The heading now includes “10 a.m.” in the working file.
StageChoose the version of a change to include in the next commit.Select the heading change, leaving an unfinished map edit out.
CommitRecord the selected state in local Git history.Create a checkpoint called “Add plant-swap start time.”
PushSend commits to a remote repository, such as one hosted on GitHub.The team can access the committed heading change.
MergeIncorporate one line of development into another.Bring the reviewed heading change into the agreed destination branch.
DeployPut a version into a running environment.Update a preview site or the public plant-swap site.

Saving, staging, and committing are separate steps in Git's file workflow. A push shares committed work with a remote repository. [2][3] Deployment belongs to your hosting setup; it may run automatically after a push or merge, or require a separate action.

Notice the gap between committed and live. “I committed it” tells you about project history. It does not establish what visitors can see. For the website side, read how websites work.

Sources

All sources checked September 25, 2026. The plant-swap project and suggested review practices are original teaching examples.

  1. Git: What is Git?
  2. Git: Recording Changes to the Repository
  3. Git: Working with Remotes
  4. Git: Branches in a Nutshell
  5. GitHub: About pull requests
  6. Git: git-status
  7. Git: A Short History of Git
  8. Git: git-worktree
  9. GitHub: About Git

Cookie preferences