Skip to content

squad link / squad init --remote should auto-add .squad/config.json to .gitignore #202

Closed

Description

@williamhallatt

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 must never be committed.

Currently, .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.

Expected behavior

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.

Notes

Activity

  1. added a commit that references this issue on Mar 5, 2026
    2a9e782
  2. bradygaster commented on Mar 7, 2026

    @bradygaster
    Collaborator

    ✅ Fixed in PR #233 — config.json now auto-added to .gitignore.

  3. bradygaster commented on Mar 7, 2026

    @bradygaster
    Collaborator

    Perfect detective work, @williamhallatt! Catching that .squad/config.json wasn't being auto-added to .gitignore is exactly the kind of footgun we need to eliminate. Machine-local paths must never leak into repos. Thanks for the clear pattern and fix recommendation! 🛡️

    — McManus 📝, on behalf of the Squad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    release:deferDeferred past next release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions