World map

 

BM: Baca dalam Bahasa Melayu

World 0: Start Here

Why save versions?

You will learn: why a time machine for your files beats messy file names.

The problem

Five copies of one essay wobble in a folder: essay.docx, essay_v2.docx, essay_final.docx, final_v2.docx and final_v3_REAL.docx.

final_v3_REAL.docx. Sound familiar? Five copies of one essay. Which one is the newest?

Try it

Put the files in order. Oldest at the top.

Oldest at the top. Put these in order. Use the arrows, or drag.

  • essay_v2.docx
  • final_v2.docx
  • essay_final.docx
  • final_v3_REAL.docx
  • essay.docx

Watch

One essay. Save points appear one by one on a timeline: Start essay, Add first line, Add ending.

A better way: keep just one file. Save a version each time, with a short note. This is called version control: A tool that remembers every saved version of your work..

Try it

Slide back in time. Watch the essay change.

dabe77f Add ending · Commit 4 of 4

essay.txtMy Holiday We went to Langkawi.We saw eagles and monkeys.Best trip ever.

Watch

git log --oneline lists the four save points of the essay, newest first. Terminal output: $ git log --oneline dabe77f (HEAD -> main) Add ending 4b5ca25 Add eagles ca5c173 Add first line 420576e Start essay

This is Git: A free tool on your computer that saves versions of your project., the most popular version control tool. It lists your save points, newest first.

Predict

A friend deleted your best paragraph. You use version control. What now?

Pick one answer.

You did it!

You can now explain why version control beats messy file names.

Go deeper (optional)

Version control is not just for code. Writers, designers and scientists use it too. Git can save any file. It shows changes best in text files, like code and notes.