Section 07: Git Basics

Learn the Git workflow for contributing code professionally. This section covers branching, committing, and creating pull requests.

What You'll Learn

  • Git workflow: Branch → Change → Commit → Push → PR
  • How to create and switch branches
  • Writing good commit messages
  • Creating pull requests
  • Collaborating with others

Why This Matters

Git is how professional developers collaborate. Understanding Git lets you:

  • Track your changes
  • Work on features without breaking main code
  • Collaborate with team members
  • Contribute to open source projects

Estimated Time

2-3 hours (practice with real commits)

Sections

  1. Git Workflow - Overview of the process
  2. Creating Branches - Feature branches explained
  3. Making Commits - Saving your work
  4. Understanding Pull Requests - Submitting changes

Git Commands You'll Learn

git status              # See what changed
git checkout -b name    # Create branch
git add .               # Stage changes
git commit -m "msg"     # Save snapshot
git push                # Upload to GitHub

Next Steps

Git Workflow →