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.
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.
Push local master to update origin/master
Pull and merge when histories diverge
Git remote workflow
Remote workflow
Fetch remote refs
Run git fetch to download origin/master without changing your working branch.
Push your commits
Publish local master so origin/master matches your latest commit.
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.
Related guides
Pair remote practice with reset/revert skills or branching basics.
Git practice game for commits, branches, and merges
Practice Git commands online in a visual playground. Make commits, create branches, and merge safely while training the same workflow used in real repositories.
Learn git reset, revert, and amend to undo changes safely
Understand soft, mixed, and hard reset, plus revert and amend — with exercises that show exactly how each command changes the commit graph.
Learn Git merge conflicts with an interactive conflict workflow
Understand Git conflict markers, compare both sides of a merge, and practice resolving merge conflicts without breaking your history.
GDB Learning
Powerful debugging for C/C++ programs with step-by-step execution, breakpoints and memory inspection.