Git vs GitHub
Git is a tool on your computer that keeps a history of your code's saves. GitHub is a website where you upload that history. It's a lot like a photo app and a cloud album.
Git (Commits)
A program that records 'save points' of your code.
GitHub
A website that stores your Git history online, like a storage room on the internet.
At a glance
| Git (Commits) | GitHub | |
|---|---|---|
| What it is | A program (tool) | A website (service) |
| Where it lives | Your computer | The internet |
| Needs internet | No | Yes |
| Similar to | 'Saving' in a photo app | A cloud album |
Use “Git (Commits)” when…
- When you want to go back to when things worked
- To save the current state before a big change
- To check what changed
🤖 Say it to your AI like this
Save all the changes so far as a git commit. Write the commit message as one line in plain English describing what changed.
Use “GitHub” when…
- To keep your code safe even if your computer breaks
- To connect automatic deploys to a service like Vercel
- When working with other people
🤖 Say it to your AI like this
Walk me through uploading this project to GitHub as a new private repository, step by step. Make sure the .env file doesn't get uploaded.
💡 How not to mix them up
Besides GitHub, there are others like GitLab and Bitbucket. They're all 'places to upload your Git history'.
More comparisons
Modal vs DrawerModal vs Toast NotificationFrontend vs BackendCookies vs CachePadding vs MarginFlexbox vs Grid LayoutPagination vs Infinite ScrollTabs vs AccordionDropdown Menu vs SelectCheckbox vs Toggle SwitchSkeleton Loading vs Loading SpinnerBuild vs DeployDomain vs HostingServer vs ServerlessBadge vs Tag / ChipHamburger Menu vs Bottom NavigationCookies vs localStorageTooltip vs Popover
← All comparisons