Manuals / Git & GitHub / Ch 1

StartBeginner15 min read

1. How to use this Git path

Git & GitHub · 48 pages source format

Git is learned by doing in a throwaway repo, then applied daily. Path order: daily loop → branches/PRs → rebase → recovery (reflog/bisect) → hooks. Learn Git Branching visualizer is your friend.

What you'll learn

  • Throwaway repo practice
  • Daily loop habit
  • Never rewrite shared history casually

Create practice repo

github.com/new → git-practice. You will break things here on purpose.

Do this now

Create git-practice repo. Clone locally. First commit: README.

Clear?

Study pace

30–45 min/day for 1–2 weeks. Do every exercise in a practice repo, not on work main.

Do this now

Bookmark learngitbranching.js.org. Schedule 15 min/day on it.

Clear?

Golden rules

Commit small and often. Pull before push. Never force-push shared branches. Read diff before commit.

  • Small, focused commits
  • Pull --rebase before push (team policy varies)
  • No force-push to main/shared branches

Do this now

Write 3 personal Git rules in practice repo README.

Clear?

Checklist