Repository (Repo)
A repository, or repo, is the folder Git tracks — it holds your project's files plus a hidden .git directory containing the full history of every change. You create one with git init or get one with git clone.
Git & DevOps
The hidden .git folder is what turns an ordinary directory into a Git repository; it stores all your commits, branches, and configuration. Deleting it removes the history while leaving your files intact.
A repository can live only on your computer (local) or also be hosted on a service like GitHub (remote), so others can access it.
Syntax
git initExamples
Bash
git init my-projectOutput:
Initialized empty Git repository in /home/user/my-project/.git/