Labs ICT
⭐ Pro Login

Initialize Repository

Initializing a repository is your first step into Git. Think of `git init` as creating a new folder in Git's special systemβ€”once you initialize, a `.git` directory appears that contains all the metadata needed to track your project's history.

Creating a New Repository

`git init` takes almost no time but sets up everything you need. After initializing, you always see the `.git` directory in your project root. This is where Git stores all your commit objects, tree structures, and references to branches.

$ ls
$ git init
$ ls -la
Try it Yourself β†’

πŸ§ͺ Quick Quiz

Which command initializes a new Git repository?