Git Init Purpose
Multiple Choice Beginner
Question
What does git init do?
Hint
git init initializes a new repo.
Explanation
git init creates a new .git directory in the current folder, establishing it as a Git repository. This is the first step for a new project. After init, you add files with git add and commit with git commit. The .git directory stores all metadata and history.
Related Resources
Related Lessons
- Git Init
Learn git init.
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.