Git vs GitHub: What's the Difference?
Git
The tool installed on your computer. It tracks changes locally.
GitHub
The website where you upload your Git repositories.
The Concept of 'Origin'
When you clone or push, you'll see origin/main. What is it?
main
Your local branch. You work here.
origin/main
Your local bookmark of where the server's main branch was last time you checked.
git fetch updates the bookmark. git pull updates the bookmark AND your local branch.
Why Do We Need GitHub?
Collaboration
Work with anyone, anywhere in the world.
Portfolio
Your public code is your resume for tech jobs.
Open Source
Contribute to projects like React, VS Code, and Linux.
DevOps
Automate testing and deployment (CI/CD).
Setting Up Your Profile
Your GitHub profile is your developer identity. Make it professional.
- Photo: Use a clear, professional headshot.
- 📝Bio: "CS Student at SCRIET | React & Python Developer"
- 📌Pinned Repos: Showcase your best 4-6 projects.
Authentication: SSH Keys
Already Set Up?
We covered SSH key generation and setup in Day 1: Module 6. If you skipped that, please go back and complete it to ensure you can push code securely.
ssh -T git@github.com in your terminal. If it says "Hi username!", you are good to go!