Level 1: Initializing a Repository
Stage 1: Fundamentals ยท Stage 1
git initEvery Git journey begins by initializing a `.git` hidden database in your project folder. Type `git init` to set up your project repository.
๐ In the terminal, type `git init` to initialize version control for this project.
Whenever you start a brand new project, `git init` transforms your folder into a version-controlled workspace.
Initializing a Repository
Every Git journey begins by initializing a `.git` hidden database in your project folder. Type `git init` to set up your project repository.
๐ In the terminal, type `git init` to initialize version control for this project.
- Type `git init` into the terminal CLI below and press Enter.
- Watch your project folder transform into a Git repository with its initial commit!
Whenever you start a brand new project, `git init` transforms your folder into a version-controlled workspace.
Running `git init` inside an existing Git repository creates nested repositories, which causes confusion. Always run it at the root.