

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Config
incomplete
2: Status
incomplete
3: Staging
incomplete
4: Commit
incomplete
5: Half of Git
incomplete
6: Git Log
incomplete
This lesson's interactive features are locked, please to keep using them
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"
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.
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"