PART VIII · DEVELOPMENT & GIT
Repository
A managed location that stores a software project's code, files, and version history.
01 · What is it?
What is it?
A repository is a managed location used to store a project's source code and related files.
With Git, a repository also contains version history showing how the project changed over time.
Simple Definition: A repository is the home of a software project's code and history.
02 · Think of it like...
Think of it like...
Think of a repository as a project folder with memory.
It stores the files, but it also remembers how those files changed.
Project Files+Version History→Repository
03 · What does it do?
What does it do?
A repository can store:
Source Code
Configuration
Documentation
Tests
Version History
Branches
04 · Where is it used?
Where is it used?
Repositories are used in:
Software Projects
Git
GitHub
Team Development
CI/CD
Open-source Projects
05 · Example
Example
my-project/
├─ app.py
├─ requirements.txt
├─ tests/
└─ README.md
When this project is initialized with Git, the folder becomes a Git repository.
06 · How it connects
How it connects
Source Code→Repository→Git→Commit→Branch
Git tracks changes inside a repository.
07 · Do Not Confuse
Do Not Confuse
Repository
The project and its version-controlled files.
GitHub
A platform that can host Git repositories online.
Repository = Project Storage + History
GitHub = Hosting / Collaboration Platform
08 · Topic Glossary
Topic Glossary
| ENGLISH TERM | 中文 | SIMPLE ENGLISH | 中文小白理解 |
| Repository | 代码仓库 | A managed location containing project files and version history. | 保存项目文件并管理版本历史的位置。 |
| Repo | 代码仓库 | A common short form of repository. | Repository 的常见简称。 |
| Local Repository | 本地仓库 | A repository stored on a local computer. | 保存在开发人员自己电脑上的 Git 仓库。 |
| Remote Repository | 远程仓库 | A repository stored on another server or platform. | 保存在 GitHub 等远程平台上的代码仓库。 |
| Working Tree | 工作目录 | The current project files being edited. | 开发人员当前正在查看和修改的项目文件。 |
| Version History | 版本历史 | Recorded information about past code changes. | 项目过去每次代码修改形成的历史记录。 |
09 · What to Remember
What to Remember
A repository stores project files and version history.
Git manages repositories.
Repositories may exist locally and remotely.
Source Code→Repository→Version History