Lazo Lab Sign up

Git, AI Tools & Your Career / Git and GitHub

Lesson 2 of 32

Your first repository

git init starts a repository. git add stages changes and git commit saves a snapshot with a message.

Key points

  • git init
  • git add file
  • git commit -m "message"
git init
git add .
git commit -m "First version"
Watch a video on thisOpens YouTube search results for “Your first repository” in a new tab

Quiz · +10 XP

Which command saves a snapshot?

Log in to save progress and earn XP.