Git remote workflow

Learn git fetch, pull, and push with a visual remote workflow

Practice syncing with origin/master: fetch remote refs, push your commits, and pull when the remote moves ahead — all on an interactive commit graph.

1 See origin/* refs appear after fetch
2 Push local master to update origin/master
3 Pull and merge when histories diverge
Learn git fetch, pull, and push with a visual remote workflow

Remote workflow

Start remote challenge

01

Fetch remote refs

Run git fetch to download origin/master without changing your working branch.

02

Push your commits

Publish local master so origin/master matches your latest commit.

03

Pull and merge

When the remote advances, git pull merges those commits into your branch.

01

See origin/* refs appear after fetch

02

Push local master to update origin/master

03

Pull and merge when histories diverge

Git remote workflow

Remote workflow

01
1

Fetch remote refs

Run git fetch to download origin/master without changing your working branch.

02
2

Push your commits

Publish local master so origin/master matches your latest commit.

03
3

Pull and merge

When the remote advances, git pull merges those commits into your branch.

Git remote FAQ

What does git fetch do?
Fetch downloads remote commits and updates origin/* references without merging them into your current branch.
When should I use git pull?
Use pull when you want to integrate remote changes into your current branch — it fetches and merges in one step.
What is origin/master?
It is the remote-tracking branch that points to the last known commit on master at origin.
Can I practice remotes without a real server?
Yes. Game4Git simulates origin with visual refs on the graph so you can learn safely in the browser.