Ga naar hoofdinhoud

Stap 4: een snapshot maken met git commit

Een commit is een opgeslagen snapshot. Je geeft elke commit een korte boodschap die uitlegt wat je veranderd hebt.

hello.txt staat hieronder al klaar in staging, dus je kunt meteen committen.

git commit -m "eerste versie"

Na de commit:

  • staging is weer leeg
  • in de repository-kolom verschijnt een nieuwe commit
  • git status antwoordt nothing to commit, working tree clean — niets te committen, je werkmap is schoon
Simulator laadt…
Klik hier voor de oplossing.

hello.txt staat al klaar in staging, dus je hoeft alleen nog te committen:

git commit -m "eerste versie"