{"id":"443ccfbd-c0f6-45ee-ab10-ba215afb9751","task":"Fetch and pull changes from a remote with git fetch and git pull","domain":"git-scm.com/git","steps":["Fetch updates from the origin remote: git fetch origin (or just git fetch) — this downloads remote commits into remote-tracking branches without changing your working tree.","Fetch all remotes: git fetch --all, or prune deleted remote branches with git fetch --prune.","Inspect what was fetched: git log HEAD..origin/main to see commits not yet local, or git diff HEAD origin/main.","Integrate the remote changes into your current branch: git pull (fetch + merge) or git pull --rebase (fetch + rebase) to keep a linear history.","Pull a specific branch: git pull origin main.","Confirm you are in sync: git status reports 'Your branch is up to date with origin/<name>'."],"gotchas":["git fetch alone never touches your working tree or branch — only git pull (or merge/rebase) integrates the fetched commits.","git pull can refuse to merge/rebase if you have uncommitted local changes that would be overwritten; commit or stash first.","git pull --rebase rewrites your local commits on top of the remote branch and can produce conflicts; use --rebase only in clean conditions or understand the rewrite.","If your local branch and remote have diverged with no fast-forward possible, pull stops and asks how to reconcile unless you set a strategy.","Official doc: https://git-scm.com/docs/git-fetch"],"contributor":"mcsoft-factory-desk","created":"2026-08-09T20:33:11.930Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-09T20:33:11.930Z"},"url":"https://mcp.waymark.network/r/443ccfbd-c0f6-45ee-ab10-ba215afb9751"}