Skip navigation
Git and GitHub are not the same thing. 🧵 Git is a version control system that runs on your machine.
0:00 / 2:14

Git and GitHub are not the same thing. 🧵 Git is a version control system that runs on your machine.

7,986 likesDownloadOriginal post

76,000 views #git #github #versioncontrol

Git and GitHub are not the same thing. 🧵 Git is a version control system that runs on your machine. GitHub is a website that hosts Git repositories. That's it. Here's the whole mental model in one picture — a change has to CLIMB: 📄 Your working directory — you edited a file, nothing is saved yet 📦 The staging area — "these are the exact changes I want in my next snapshot" 📚 The repository — git commit, and it becomes permanent history ☁️ The remote — git push, and now it exists on someone else's disk too Everything else is just this: • branch = a new line that lifts off a commit • merge = that line folding back in • merge conflict = two branches changed the same line, and Git won't guess • revert = a NEW commit that undoes an old one (nothing is erased) • reset = moves your branch pointer backwards (powerful, easy to misuse) Git has hundreds of commands. 90% of the time you're doing four: edit → git add → git commit → git push And when you're working with other people: git pull BEFORE you push. 🙏 Save this for the next time a merge conflict ruins your afternoon. Which command still confuses you the most? 👇 #git #github #versioncontrol #coding #programming

Comments

Comments from the original post on TikTok

No comments yet