← Back to articlesGitHub basics

What is a commit compared with saving a file?

Saving changes a file; a commit records a set of changes in history with a message.

The short answer

Committing is separate from pushing and publishing. Distinguishing them prevents accidental assumptions about what is public.

Try it in three steps

  • Edit a short description in a practice repository.
  • Review the diff and commit with a specific explanation.
  • Check remote and deployment state separately.

A practice prompt

Before you start

Start with state classification, not commands in a real repository.

Practice material (fictional)

A: saved in editor. B: committed locally. C: pushed remotely. D: deployment reports the new live revision.

Replace placeholders in the prompt with this material, or append the material if there are no placeholders. Reading time excludes doing the exercise.

Report save, commit, push and publication states separately. Mark unknowns and perform no remote actions.

What to look for (not a recorded test result)

The stages differ. A or B does not establish remote visibility, and D still needs a public revision check.

If it goes wrong

Replace vague messages with purpose, such as document offline startup steps.

Check your result

You can understand the change's purpose without confusing its publication status.

References and scope

The links below support the concepts or product navigation. The steps and exercises are our teaching suggestions, not official certification or measured customer outcomes. Product interfaces and availability may change. References checked on 2026-10-17.

Start with one task

Describe the current process and its slowest step. The initial conversation is free.

Let’s talk ↗
Need help? See small-scale implementation services ↗

Keep reading