Git & GitHub for Beginners / Chapter 1 — Git basics (lessons 1–5) / Lesson 1

What version control and Git are

Time needed: about 3 min (estimate)

☆ Read later

You can try the opening of this lesson without an account.

What happens when you manage versions by filename

report_final.docx, report_final_v2.docx, report_final_really_final.docx.

Copying and renaming does leave a record of sorts, but it does not tell you what changed, why it changed or who changed it.

And when several people edit at once, there is no way to combine the results.

A version control system exists to record those three things and let the machine do the merging.

What filename management loses

what changed you cannot see the difference between v2 and v3 without opening both why it changed the intent does not fit in a filename who changed it with several people working, this becomes fatal no merging A's v3 and B's v3 have to be merged by hand

Git stacks up a history of changes

Create a free account to keep reading

With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.

Report a problem with this lesson

Log in to send a report.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.