My Git & GitHub learning notes — setup, commands, examples, and common pitfalls.
This repo is my personal reference while learning Git and GitHub. It contains setup instructions, short hands-on examples, a commands cheatsheet, and troubleshooting notes I collected while practicing version control.
Not a canonical tutorial - a practical, hands-on learning log made easy.
I created this as a learning log: a place to collect the commands and examples that helped me, so I can refer to them later and show my progress. If you landed here and find something useful - great. If you're an experienced dev, feel free to close this tab and go back to your work 😄.
- Git is a distributed version control system that runs locally on your machine. It tracks changes to files, allows branching/merging, and stores history.
- GitHub is a cloud hosting service for Git repositories. It provides a web interface, issue tracking, pull requests, CI integrations (Actions), pages, and social features.
Think of Git as the engine and GitHub as a collaborative platform that hosts that engine's data.
This is my personal learning repo. If I later accept contributions, I will add a CONTRIBUTING.md and CODE_OF_CONDUCT.md.
- Install Git:
https://git-scm.com/ - Configure your identity:
git config --global user.name "Your Name"
git config --global user.email "youremailaddress.com"