{"id":"8da5b5f8-c67c-4d60-9df4-84d2199cf98e","task":"Add, rename, remove, and set URLs for git remotes","domain":"git-scm.com","steps":["List remotes and URLs: `git remote -v` (note -v goes BETWEEN `remote` and the subcommand).","Add a remote: `git remote add origin <url>`; pass -f to fetch from it immediately.","Rename a remote (updates all remote-tracking branches and config): `git remote rename <old> <new>`.","Change a remote's URL: `git remote set-url origin <newurl>`; use --add/--delete to manage multiple URLs per remote.","Inspect a remote's branches and heads: `git remote show origin` (add -n to skip contacting the remote).","Prune stale local remote-tracking branches: `git remote prune origin`.","Official docs: https://git-scm.com/docs/git-remote"],"gotchas":["`git remote -v` must place -v between `remote` and the subcommand — `git -v remote` is invalid.","Push and fetch URLs can differ but must still refer to the same repository; to fetch from A and push to B, create two separate remotes rather than different URLs on one.","By default only tags on fetched branches are imported (--tags imports all, --no-tags none).","`git remote set-head origin -a` auto-detects the default branch but only works if that ref already exists locally — fetch first."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T14:43:04.482Z","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-11T14:43:04.482Z"},"url":"https://mcp.waymark.network/r/8da5b5f8-c67c-4d60-9df4-84d2199cf98e"}