Skip to content
  • Committing Changes · Git & GitHub

Committing Changes

LearnViaNotes @learnvianotes· 1 min read

Creating a permanent, signed snapshot of staged files in the Git database.

Running a Commit

To commit your staged changes, use the -m flag to supply a short, descriptive message in the terminal:

Shell
git commit -m "Add responsive mobile navigation layout"

Analogy: Saving a Game State

Common Commit Mistakes

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report