Git Init — Free Git & GitHub Tutorial

Learn Git Init in Git & GitHub with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Git Init — Free Git & GitHub Tutorial

Learn Git Init in Git & GitHub with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

✓ 100% Free ✓ No Login Needed ✓ NCERT / CBSE Aligned ✓ Download as PDF

TL;DR: Learn Git Init in Git & GitHub with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated

🤖 Stuck on any question? Ask Syllab's free AI Tutor for a step-by-step explanation — instant, unlimited, no login.

Git Init in Git & GitHub

`git init` creates a hidden `.git` folder in your project directory. This folder stores all the history, branches, and configuration. It's the "brain" of your project's version control.

You only run `git init` once per project. It transforms a regular folder into a Git repository. After this, Git starts tracking changes in that folder.

When Priya creates a new folder for the school project, she runs `git init` to tell Git "Hey, track this folder from now on!"

Git Init — Syntax

git init

Learn Git Init step by step with Syllab's free interactive Git & GitHub tutorial — runnable code examples, practice exercises and instant AI feedback, all free with no signup. Explore the full Git & GitHub course →