# git init — Git Fundamentals: Commits, Branches और Collaboration

Source: https://www.skillbyai.com/hi/git/git-init

> git init से किसी भी folder को repository बनाएँ, जो hidden .git directory बनाता है।

## फ़ोल्डर को ट्रैक करना शुरू करें

`git init` यहाँ एक छुपा हुआ `.git` फ़ोल्डर बनाता है — यही इसे रिपॉज़िटरी बनाता है।

```bash
mkdir my-project && cd my-project
git init
```

Output:

```
Initialized empty Git repository in /my-project/.git/
```

## एक repo, एक जड़

प्रोजेक्ट के रूट पर सिर्फ़ एक बार `git init` चलाएँ — सबफ़ोल्डर के अंदर नेस्टेड `.git` फ़ोल्डर मदद नहीं, भ्रम पैदा करेंगे।
