Title: squad link / squad init --remote should auto-add .squad/config.json to .gitignore · Issue #202 · github/squad · GitHub
Open Graph Title: squad link / squad init --remote should auto-add .squad/config.json to .gitignore · Issue #202 · github/squad
X Title: squad link / squad init --remote should auto-add .squad/config.json to .gitignore · Issue #202 · github/squad
Description: Problem .squad/config.json is written by squad link and squad init --remote to store the teamRoot path for remote squad mode. The teamRoot field is an absolute path to the developer's local machine — it is inherently machine-local and mu...
Open Graph Description: Problem .squad/config.json is written by squad link and squad init --remote to store the teamRoot path for remote squad mode. The teamRoot field is an absolute path to the developer's local machine...
X Description: Problem .squad/config.json is written by squad link and squad init --remote to store the teamRoot path for remote squad mode. The teamRoot field is an absolute path to the developer's local mac...
Opengraph URL: https://github.com/github/squad/issues/202
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"squad link / squad init --remote should auto-add .squad/config.json to .gitignore","articleBody":"## Problem\n\n`.squad/config.json` is written by `squad link` and `squad init --remote` to store the `teamRoot` path for remote squad mode. The `teamRoot` field is an absolute path to the developer's local machine — it is inherently machine-local and must never be committed.\n\nCurrently, `.squad/config.json` is **not** added to `.gitignore` by any of these commands, so running `git add .squad/` accidentally includes it. This is how a file containing `/home/username/code/squad` ended up in a PR branch.\n\n## Expected behavior\n\n`squad link` and `squad init --remote` should automatically append `.squad/config.json` to the user's `.gitignore` (creating it if it doesn't exist), the same way tools like `dotenv` or `npm init` manage their own ignore entries.\n\n## Notes\n\n- Similar pattern: `squad init` already handles `.squad/orchestration-log/` and `.squad/log/` in `.gitignore`\n- The fix is in `packages/squad-cli/src/cli/commands/link.ts` and `packages/squad-cli/src/cli/commands/init-remote.ts`\n- Detected during PR review for issue #201","author":{"url":"https://github.com/williamhallatt","@type":"Person","name":"williamhallatt"},"datePublished":"2026-03-05T11:03:37Z","url":"https://github.com/github/squad/issues/202"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d9f1d6ee-cdb4-015c-4e38-74adb4da0c3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87E2:2FEA0C:503B8E:6A3E00:6B0179B9 |
| html-safe-nonce | 507c1a387acfdfabc96b5bc01b7080c4869a7526f00d48b69d2cfb4b5909898f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0UyOjJGRUEwQzo1MDNCOEU6NkEzRTAwOjZCMDE3OUI5IiwidmlzaXRvcl9pZCI6IjI0NTY1NjA1ODE3MjYwMDk3ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5f0a1d31f251e3a66d68ba07eeb03bee56aebb93156bc288c3c40632f34363fa |
| hovercard-subject-tag | issue:4027523898 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43275d79f88a3421191db0c3795060384bfa375926e7377839b2c3061be0f546/github/squad/issues/202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43275d79f88a3421191db0c3795060384bfa375926e7377839b2c3061be0f546/github/squad/issues/202 |
| og:image:alt | Problem .squad/config.json is written by squad link and squad init --remote to store the teamRoot path for remote squad mode. The teamRoot field is an absolute path to the developer's local machine... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | williamhallatt |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width