| Next: Install Git -> |
|---|
Understand what version control is, what Git does locally, and what GitHub adds on top.
- explain the difference between Git and GitHub
- describe why version control matters even on small projects
- identify
.gitas the local history database for a repository
- Git is a distributed version control system that runs on your machine.
- GitHub is a platform that hosts Git repositories and adds collaboration features.
- A commit is a saved project snapshot plus metadata such as author, timestamp, and message.
- The
.gitdirectory stores repository history, references, and configuration for the project.
Git and GitHub are related, but they are not the same tool.
- Git tracks file changes locally. You can use it without an internet connection.
- GitHub hosts Git repositories remotely so people can share code, review changes, and open pull requests.
Without version control, teams often create folders such as project-final, project-final-v2, and project-final-really-final. That approach loses history and makes collaboration hard.
Git solves that problem by recording a structured history of commits. Each commit points to a project snapshot, so you can inspect what changed, when it changed, and who made the change.
Throughout this course, you will learn a basic Git workflow:
- change files in the working directory
- stage selected changes with
git add - create a commit with
git commit - push the commit to GitHub
In the next module you will install Git and confirm that your shell can run it:
git --version- You can explain Git in one sentence without mentioning GitHub.
- You can explain GitHub in one sentence without calling it "Git".
- You know that repository history lives in
.git.
| Next: Install Git -> |
|---|