Learn version control step-by-step — perfect for students & beginners 👨💻
Git is a tool that helps you:
- Track changes in your code 📊
- Go back to previous versions ⏪
- Work safely without losing data
👉 Think of Git as a save history system for your code.
GitHub is a platform where:
- You store your code online ☁️
- Share projects 🤝
- Collaborate with others 🌍
Download Git: https://git-scm.com/downloads
Check installation:
git --version
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
cd your-project-folder
git init
Add all files:
git add .
Add specific file:
git add file.txt
git commit -m "Initial commit"
git remote add origin https://github.com/username/repo.git
git branch -M main
git push -u origin main
git status # Check changes
git log # View history
git pull # Get updates
git clone URL # Download repo
ssh-keygen -t ed25519 -C "your@email.com"
👉 Add SSH key to GitHub
👉 Use Personal Access Token instead of password
👉 Or switch to SSH authentication
git add .
git commit -m "message"
Now you know:
- Git basics
- How to track code
- How to push to GitHub
🔥 Practice daily and become pro 🚀