Terminology
Repository or Repo
A Repository is a place where all the version of files and their complete change history are stored. The first step of any project is creating a Git repository (repo).
- A repository represents one project
- Usually, each project has one repo
- A repo is a normal project directory with a hidden
.gitfolder - The
.gitfolder stores Git’s tracking and version history data
What is a Version Control System?
Version control, also known as source control, is track the files and changes of the file .
Famous VCS:
- Git (Most Famous)
- Apache SubVersion
- Piper (Used by Google)
Git vs GitHub
| Feature | Git | GitHub |
|---|---|---|
| Type | Version control system | Git repository hosting platform |
| Runs on | Local machine | Cloud / web |
| Purpose | Track code changes | Store & share Git repositories |
| Internet required | No | Yes |
| Main use | Commits, branches, history | Collaboration, pull requests |
| Ownership | Open‑source project | Company product owned by Microsoft. |
| Example | git commit |
git push |
| Alternatives | Mercurial | GitLab, Bitbucket |