Skip to main content
/1 min read

Quick Reference of Git Commands (Common Workflows)

Git Daily Workflow

1

Pull Latest

git pull origin main — start with up-to-date code.

2

Create a Branch

git checkout -b feature/X — never commit directly to main.

3

Commit Often

Small, focused commits with clear messages.

4

Push & PR

git push, then open a pull request for review.

Build Programming Foundations at Noble Desktop

Noble Desktop's Full-Stack Web Development Certificate teaches Git alongside the modern web stack — a must for any developer.

As a handy reference, here are a few common Git workflows you'll use.

Commit & Push

Git pull Git status Git add. Git commit -m "Message that describes what this change does" Git push

Switch to an Existing Branch & Pull Latest Changes

NOTE: The first Git pull ensures we get a list of all branches from the remote.

Git pull Git status Git checkout my-branch-name Git pull Git status

Create a New Branch & Push It for the First Time

Git status Git pull Git checkout -b my-branch-name Git status Git add. Git commit -m "Message that describes what this change does" Git push -u origin HEAD

Go Beyond Git

We offer the best coding courses and bootcamps for students at all levels of experience. Classes are hands-on and students receive workbooks with step-by-step instructions through exercises with real-world applications. Check out our programming courses now: