← Your First Commit
Stage the file
Learn
Stage a change: git add
Committing is a two-step move. First you stage a change with git add <file>:
you mark it to go into the next snapshot. Staging lets you choose exactly what goes into a
commit, even when you've changed several files.
One-time setup first: Git stamps every commit with an author, so it needs to know who you
are. Set it per repository with git config:
git config user.email "you@example.com"
git config user.name "You"
After git add, git status lists the file under Changes to be committed.
Your task
Set your identity with git config user.email/user.name, then git add README.md to stage it. git status should now show it under Changes to be committed as a new file.