S
Seoffix.com
Sign In Get Pro Membership

Git & DevOps Essentials

Git: Init and Commit

Beginner Shell 20 XP

Git: Init and Commit

A repository tracks history. Stage files with git add, then save a snapshot with git commit.

Example

git init
git add .
git commit -m "first snapshot"

Your task

Write the three commands that create a repo, stage everything and commit with the message initial.

Hints

  1. Three commands in order
  2. git commit -m "initial"

Check your understanding

Answer every question to pass.
1. Which command saves a snapshot of staged files?

Your answer

This lesson is checked against the lesson rules. Your code is never run on our servers.

AI Code Explainer & Translator

Runs without any outside service.
 
Mark Complete & Earn XP
Earn 20 XP after you pass the quiz. Finish every lesson in the track to earn its certificate.
Sign in to earn XP

Git & DevOps Essentials

Lessons in this track
Questions about this lesson? Ask the Coding & Web Dev squad. Discuss in Community