ron@lieder:~$

HOW TO GIT ’ER DONE!

Your laptop ↔ GitHub. PUSH sends your work UP. PULL brings changes DOWN.

THE DAILY LOOP — the whole cycle in 5 moves

Do these in order, every working session. Pull first so you start with the latest, then save and ship your work.

$ git pull — grab the latest before you touch anything.
$ … do your work …
$ git add . — stage everything you changed.
$ git commit -m "what you did" — save a snapshot with a note.
$ git push — send it up to GitHub.

↑ PUSH — send YOUR work UP to GitHub

$ git status — Shows what files you changed. Optional but smart.
$ git add . — Stages all your changes. The dot means “everything.”
$ git commit -m "…" — Saves a snapshot with a short note (write it like a headline).
$ git push — Sends your saved snapshots up to GitHub.

↓ PULL — bring changes DOWN to your laptop

First time only:

$ git clone <repo-url>

Every time after:

$ git pull

★ GOLDEN RULES

$ Always git pull BEFORE you start working.
$ git status tells you exactly where things stand — safe to run anytime.

Commit small and often. A good note today is a gift to you next month.

← Back to Home