Predict Init Output
Predict Output Beginner
Question
You run `git init` in a brand-new empty folder. What does Git print?
Code
mkdir test
cd test
git init
Hint
Git tells you it created a new empty repository.
Explanation
Git prints a message confirming it initialized an empty repository, including the full path to the newly created .git directory. The exact path varies by your filesystem, but the message always starts with 'Initialized empty Git repository in'.
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.