Web development
Version Control and Repositories
Updated Oct 28, 2026
Git tracks versions of files in a repository. GitHub is a hosting and collaboration service for Git repositories. A repository can be local, remote, or connected to both. Version control helps you ins
What you’ll learn
Understand and practise version control and repositories.
Explanation
Git tracks versions of files in a repository. GitHub is a hosting and collaboration service for Git repositories. A repository can be local, remote, or connected to both. Version control helps you inspect changes and return to earlier work.
Git តាមដានកំណែឯកសារក្នុង repository។ GitHub ជាសេវាផ្ទុក និងសហការលើ Git។ Repository អាចនៅលើកុំព្យូទ័រ ឬនៅលើ server។
Example
Create a local repository for a small website project.
Practice
What is the purpose of version control?
Answer and explanation
Show answer / បង្ហាញចម្លើយ
It records changes so you can review and manage versions.
Quick recap
Git tracks versions of files in a repository.