FahamLah

Commands

git commit -m "<message>"

git commit -m "<message>"

Risk: Safe

What it does

Saves the box as a save point.

When to use it

After git add, when one change is done.

Example

$ git commit -m "Add day 1 page"

Save with a clear message.

$ git commit -am "Fix typo"

Add tracked changes and commit in one go.

$ git commit --amend -m "Better message"

Replace the last commit. Not after you push!