Services Work Learn About Contact
0/8
Lesson 2 of 8

git init & git status

Every Git project starts with a repository. Use git init to create a new repository. Use git status to see which files have changed and which are ready to be saved.

When a file is new or modified, Git sees it as "untracked" or "modified." You need to explicitly tell Git which changes to save.

GIT
# Create a new Git repository
git init

# Check the current status
git status

# Output examples:
# - Untracked files: new files Git does not know about
# - Modified: files that changed since last save
# - Staged: files ready to be saved
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed Git & GitHub!

You finished all 8 lessons and quizzes. You now know the basics of Git & GitHub.