Is there file(s) to ignore to commit in .specify and specs directories ?
#2304
Replies: 6 comments
|
What you commit is up to you. Or you can quickly install whatever you need. |
|
Thank you for your response, it is still a bit vague. I would really like to know the best practice for sharing files with my team and possibly those that can be ignored. To tease you, your answer reminds me a bit of '42,' the answer to "The great question of life and everything else". |
|
It depends. Do you want to retain everything. Then commit it all. Do you want to retain the specs? Keep them. Reinstalling the Specify CLI is quick and easy so is the .specify directory needed in Git? Not really. But again depends on what you want! |
|
Thanks for your answers, I'll share you my observations for now, I investigated three files in
I'm curious to know if the community have more files to commit or not with remarks, |
|
Good morning all - stumbled across this discussion when searching for an answer to this myself 😄 and while typing out my questions I kind of answered them. Initially I was asking - should these be shared across the team? Because I can imagine running into conflicts on these would be troublesome.
There's a pattern for each answer here - so ultimately if you want your team to have a consistent experience, keep them committed :) |
|
Great investigation, and @jarodsmk's framing is spot on: if you want a consistent team experience, commit it. Here's the concrete breakdown based on how the files actually behave. Commit and share (project-level, meant to be versioned):
Machine/session-local state (don't share):
Good news: you shouldn't have to manage this by hand. I've opened a PR (#4000) so feature.json
extensions/*/local-config.ymlIt's tracked by the CLI's shared-infrastructure manifest, so your edits are preserved on re-init and One caveat regardless of gitignore: if you already committed TL;DR: commit Posted on behalf of @mnriem by GitHub Copilot (model: Claude Opus 4.8). The linked PR was authored by the same agent. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Is there file(s) to ignore to commit in
.specifyandspecsdirectories ?It seems that
.specify/feature.jsonis modified between the implementation of different specs and seems focus the latest spec in usage.I'm a bit too new to know that kind of subtilities but i would share only needed files to my team via git.
Thank you for sharing your experiences on this subject with me.
All reactions