Predict Status After Add
Predict Output Easy
Question
You create a file and run `git add file.txt`. What does `git status` show?
Code
echo "hello" > file.txt
git add file.txt
git status
Hint
The file is now staged, ready to commit.
Explanation
After git add, the file appears under 'Changes to be committed' as a 'new file'. It is in the staging area, waiting for git commit. If you had not run git add, it would appear under 'Untracked files' instead.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.