DELAPARRA
Index
Color
NL
Category: Git commands

git commit

Explained by Updated

What is git commit?

git commit: Record staged changes as a new snapshot in history. git commit records the staged changes as a new snapshot in the project's history, with a message describing what changed and why. git commit -m "Fix VAT rounding on invoices" creates a commit with that message. Good commits are small and focused on one change. That makes them easy to review, easy to revert, and useful when searching history later with git log or git bisect.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about git commit

What should you keep in mind with git commit?

The message matters more than people think. The diff shows what changed; the message should explain why. A short first line, around fifty characters, followed by a blank line and more detail when needed, works well everywhere. "Fix bug" tells the next developer nothing. "Round VAT per line instead of per invoice" tells them what the rule was and where to look.

At a glance

CategoryGit commands
Explained by
Updated

More Git commands terms

All terms starting with G

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.