What Is Git?
Git is a version control tool developed in 2005 by Linus Torvalds—the same person who created Linux. It records "when, who, and what changed," so you can always look back at earlier states if something goes wrong. Think of it as "Word's track changes + organized Ctrl+Z for your code."
What Is GitHub?
GitHub is a service that stores your Git history online. It's like a "code sharing space" where you can publish your projects, collaborate with friends, or contribute to open-source projects from around the world. Age requirements and terms of use can change, so check the official guidelines when creating an account.
How It Works: Connecting Your PC to the World
Git is "the tool that creates history on your own PC." GitHub is "the place that stores that history in the cloud." The flow is: push sends from your PC to GitHub, pull brings from GitHub to your PC.
The 3 Core Commands
Memorizing add → commit → push is all you need to start basic version control. Once you're comfortable, you can explore branches and merging, but start by making the flow "select, record, send" feel natural in your hands.
What You Can Do with GitHub
Keeping your code on GitHub means you can share public repositories via a URL. This can serve as a portfolio when applying for schools or jobs. Don't just publish the finished product—write a README explaining "what you built," "how to run it," and "what you focused on," and it becomes much easier for others to understand.
You can also report bugs in open-source projects or submit your own fixes. You don't need to jump into a huge project right away. Publishing a small project, writing a README, and making a few commits is already great practice.
Common Pitfalls
- Pushing passwords or API keys that are hardcoded in your source. Once public, they're hard to remove from history. Use
.gitignore. - Writing vague commit messages like "fix" or "update." Your future self will be confused. Write something specific like "Fix bug causing score to reset on reload."
- Being afraid to commit and saving files by copy-pasting instead. That's not version control. Even once a day is fine—make committing a habit.
How Will This Help Later?
In IT companies and developer communities, showing your GitHub account and project URLs is common. A GitHub account you've used consistently since you were a student becomes a record of your learning. Since working engineers use these tools every day, getting comfortable with them as a teen means you'll understand collaborative development thinking early.
What You Can Do Today
- Create an account on GitHub (free; check age requirements with a parent/guardian).
- Create one repository that contains only a "README.md" and write a short intro about yourself.
- Edit the README directly in the GitHub browser interface and make a commit (no command line needed at first).