2026-02-22
You don't need to become a developer to use Git. You just need enough to collaborate confidently — make changes, save them, and get them into the product without stepping on anyone's work. That's what this guide is for.
Forget the technical definitions. Here's Git in terms you already know:
No terminal theory. Just what each command does in practice.
git clone <url> # Download the project
git pull # Get latest changes
git status # See what you changed
git checkout -b <name> # Create a branch
git add . # Stage changes
git commit -m "..." # Save a checkpoint
git push # Upload to GitHub
That's it. Seven commands cover 95% of your day-to-day.
Follow this every time you start working on something new.
Step 1 — Pull the latest main
git checkout main
git pull
Step 2 — Create a feature branch
git checkout -b feature/update-hero-copy
Step 3 — Make your changes Edit the files you need — copy, spacing, colors, icons.
Step 4 — Commit with a clear message
git add .
git commit -m "feat: update hero headline copy"
Step 5 — Push your branch
git push
Step 6 — Open a PR on GitHub Go to the repo on GitHub, click "Compare & pull request", fill in what you changed, and submit for review.
Good names help your whole team — especially devs reviewing your work.
Branches
feature/button-hover-state
fix/nav-spacing-mobile
update/onboarding-copy
Commits
feat: add hover state to primary button
fix: correct padding on mobile nav
update: revise step 2 onboarding copy
Why it matters: devs scan dozens of branches and commits a week. Clear names mean your work gets reviewed faster and merged with fewer questions.
These are safe to edit without worrying about breaking logic:
| File type | Examples | Risk |
|---|---|---|
| Copy | .jsx, .html, .json strings |
✅ Safe |
| Spacing tokens | tokens.json, variables.css |
✅ Safe |
| Colors | CSS variables, token files | ✅ Safe |
| Icons | .svg files in /assets |
✅ Safe |
| Images | /public or /assets folder |
✅ Safe |
| Simple CSS | styles.css, .module.css |
✅ Safe |
| Component logic | .js, .ts files |
⚠️ Ask first |
| Config files | package.json, .env |
🚫 Don't touch |
When in doubt, ask a dev before editing an unfamiliar file.
What it means: two people edited the same file, and Git doesn't know which version to keep.
When it happens: usually when you've been on a branch for a while and main has moved on.
VS Code
git add .
git commit -m "fix: resolve merge conflict on hero component"
Still unsure? Ping a dev — conflicts are normal and nothing to panic about.
A good PR gets reviewed and merged faster. Here's the formula:
Small, clear PRs are a gift to your team.
If your team uses design tokens, here's the full loop:
Figma (design) → tokens.json (export) → codebase (paste/update) → commit → PR → merge → live
git checkout -b update/color-tokens
# paste updated tokens.json into the repo
git add tokens.json
git commit -m "update: sync color tokens from Figma"
git push
# open PR
Ask your dev team where token files live and whether there's an automated export plugin set up.
| Do | Don't |
|---|---|
| Pull before starting work | Push directly to main |
| One feature per branch | Bundle multiple changes in one PR |
| Write descriptive commit messages | Commit with "fix" or "updates" |
| Ask before editing unfamiliar files | Edit config or logic files alone |
| Add a screenshot to your PR | Open a PR without context |
You don't have to live in the terminal. GitHub Desktop (desktop.github.com) gives you a visual interface for everything — clone, commit, push, open a PR — with no commands. VS Code also has built-in Git controls in the left sidebar if you're already coding there.
Something went wrong? Here's how to fix the most common situations.
Undo your last commit (keep the changes)
git reset --soft HEAD~1
Discard all changes to a file
git checkout -- <filename>
Delete a branch you no longer need
git branch -d feature/old-branch
Accidentally worked on main?
git checkout -b feature/my-actual-branch
# your changes move with you
The golden rule: as long as you haven't pushed to main, almost anything is fixable.
The fastest way to learn Git is to use it on something real. Try this:
git checkout -b practice/your-name.html or content file and change a single wordgit add . && git commit -m "feat: test edit"git pushOne full loop. That's the whole thing. Once you've done it once, it stops feeling scary.
Git is a collaboration tool, not a developer-only tool. The more designers speak the language, the faster great design ships.