We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Commit

After staging a file, we can commit it.

A commit is a snapshot of the repository at a given point in time. It's a way to save the state of the repository, and it's how Git keeps track of changes to the project. A commit comes with a message that describes the changes made in the commit.

Here's how to commit all of your staged files:

git commit -m "your message here"

Assignment

You wouldn't normally start a commit message with A:, you'd just write the message, but we're going to use letters to help us easily identify commits in this course.

Run and submit the CLI tests from inside the webflyx directory.

Tip

If you screw up a commit message, you can change it with the --amend flag. For example:

# Change the last commit message
git commit --amend -m "A: add contents.md"