Git IntroΒΆ
What is Git?ΒΆ
Git is a version control system β it keeps a timeline of your project. Every commit is a snapshot you can revisit, compare, or branch off. Think of it as a time machine for code and docs.
What is GitHub?ΒΆ
GitHub is a service that hosts Git repositories and adds:
- Collaboration (issues, pull requests, reviews).
- Automation (GitHub Actions).
- Hosting (GitHub Pages β what powers this site).
There are alternatives: GitLab, Bitbucket, Gitea, SourceHutβ¦. Weβre living on GitHub because itβs the standard, and GitHub Pages makes publishing easy.
First stepsΒΆ
When you create a repo on GitHub, it shows you a block of ready-to-use commands (init, add remote, push). Copy those into your shell the first time. After that, your daily flow is just:
git add -A
git commit -m "message"
git push