Git is a version control system — it tracks every change you make to your files so you can go back in time, collaborate with others, and understand why code changed.
mkdir my-project
cd my-project
git init # creates the .git folder
ls -la # you'll see .git/
After git init the directory is an empty repository — no commits yet, but Git is watching.
git status # shows the current state
# On branch master
# No commits yet
# nothing to commit
The script below creates a new directory. Initialize a Git repository inside it, then create a file called hello.txt containing the text Hello, Git!.
Click "Run" to execute your code.