Welcome to the Git course!
Course Objectives
- [ ] Getting Started with Version Control
- What is version control and why do we need it?
- Understanding Gitβyour coding time machine
- Git vs. GitHubβwhat's the difference?
- [ ] Basic Computer Commands
- Command-line basics for getting started
- How to use Git Bash (a terminal for Git)
- [ ] Git Basics
- Creating repositories on GitHub
- Cloning a repository
- Understanding origin and remote repositories
- Creating and managing branches
- Understanding the staging area (preparing files for saving)
- Saving your work (making commits)
- [ ] Working with GitHub
- Pushing code to GitHub
- Pulling code from GitHub
- Creating pull requests
Getting Started with Version Control
Let's explore version control in a fun and practical way! We'll start with something you probably already know - Google Docs! π
1. Version Control: A Google Docs Adventure π
Imagine you're writing an essay in Google Docs:
- Ever notice how it saves automatically? No more "Did I save my work?" panic! β¨
- Try this: Click "File > Version history" - it's like a time machine for your document! π
- Fun fact: You and your friends can work together without overwriting each other's work! π₯
2. Meet Git: Your Code's Best Friend π»
Now, let's level up! Think of Git as a super-powered Google Docs for your code, but with even more capabilities:
- Git gives you powerful abilities:
- Track changes: Like saving checkpoints in a game, but for your code! You can:
- See exactly what lines of code changed in each file π
- Know who made each change and when π€
- Add helpful messages to explain why changes were made π
- Jump back to any previous version if something goes wrong π
- Create branches: Work on different versions of your code at the same time π
- Experiment with new features safely π§ͺ
- Fix bugs without affecting the main code π
- Collaborate with others without conflicts π₯
3. Git vs. GitHub: Understanding the Difference
Git is your local version control system that tracks changes in your code, while GitHub is the online platform where you can store, share, and collaborate on your Git repositories.
|
Git |
GitHub |
| Definition |
A version control system |
Online platform for Git repos |
| Purpose |
Tracks and manages code locally |
Stores, shares, and collaborates |
| Backup |
No cloud backup |
Provides cloud backup |
We'll explore these concepts in detail throughout the course as you build your practical skills.