main git-github/lessons/02-your-first-commit

README.md

Lesson 2: Your first commit

This lesson covers your first commit. You'll read a short explanation, try three small exercises and finish with a quiz.

Read the full lesson: https://glibcode.net/courses/git-github/lessons/2

Files

  • commands.sh: init, add and commit

Tip: set -euo pipefail at the top of a script stops it at the first error.

Tip: history | grep ssh finds that command you typed last week.

Tip: man pages are long; tldr <command> gives you the common cases.

Run it

# type the commands from commands.sh one by one; don't run it as a script

Exercises

See exercises.md. Ask in the forum after you have tried.