You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 216146a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
<!-- insert new changelog below this comment -->
4
4
5
+
## [0.10.0] - TBD
6
+
7
+
### Breaking Changes
8
+
9
+
-**Git extension is now opt-in** — `specify init` no longer auto-installs the git extension. Use `specify extension add git` to install it, or pass `--extension git` during init.
10
+
-**`--no-git` flag removed** — previously deprecated, this flag has been removed. Git repository initialization now always runs when git is available; the extension itself is no longer auto-enabled.
Copy file name to clipboardExpand all lines: docs/reference/core.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,14 @@ specify init [<project_name>]
15
15
|`--script sh\|ps`| Script type: `sh` (bash/zsh) or `ps` (PowerShell) |
16
16
|`--here`| Initialize in the current directory instead of creating a new one |
17
17
|`--force`| Force merge/overwrite when initializing in an existing directory |
18
-
|`--no-git`| Skip git repository initialization |
19
18
|`--ignore-agent-tools`| Skip checks for AI coding agent CLI tools |
20
19
|`--preset <id>`| Install a preset during initialization |
21
20
|`--branch-numbering`| Branch numbering strategy: `sequential` (default) or `timestamp`|
22
21
23
22
Creates a new Spec Kit project with the necessary directory structure, templates, scripts, and AI coding agent integration files.
24
23
25
24
> [!NOTE]
26
-
> The git extension is currently enabled by default during `specify init`.
27
-
> Starting in `v0.10.0`, it will require explicit opt-in. To add it after init, run `specify extension add git`.
25
+
> The git extension is opt-in as of v0.10.0. To add it after init, run `specify extension add git`.
28
26
29
27
Use `<project_name>` to create a new directory, or `--here` (or `.`) to initialize in the current directory. If the directory already has files, use `--force` to merge without confirmation.
### Scenario 4: "I'm working on a project without Git"
261
261
262
-
If you initialized your project with `--no-git`, you can still upgrade:
262
+
If your project directory does not use Git, Spec Kit will automatically detect this and skip repository initialization. You can still upgrade normally:
It **only** skips running `git init` and creating the initial commit.
306
-
307
-
### Working without Git
308
-
309
-
If you use `--no-git`, you'll need to manage feature directories manually:
310
-
311
-
**Set the `SPECIFY_FEATURE` environment variable** before using planning commands:
312
-
313
-
```bash
314
-
# Bash/Zsh
315
-
export SPECIFY_FEATURE="001-my-feature"
316
-
317
-
# PowerShell
318
-
$env:SPECIFY_FEATURE = "001-my-feature"
319
-
```
320
-
321
-
This tells Spec Kit which feature directory to use when creating specs, plans, and tasks.
322
-
323
-
**Why this matters:** Without git, Spec Kit can't detect your current branch name to determine the active feature. The environment variable provides that context manually.
Copy file name to clipboardExpand all lines: src/specify_cli/commands/init.py
+25-75Lines changed: 25 additions & 75 deletions
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,6 @@ def init(
101
101
ai_commands_dir: str=typer.Option(None, "--ai-commands-dir", help="Directory for agent command files (required with --ai generic, e.g. .myagent/commands/)"),
102
102
script_type: str=typer.Option(None, "--script", help="Script type to use: sh or ps"),
103
103
ignore_agent_tools: bool=typer.Option(False, "--ignore-agent-tools", help="Skip checks for coding agent tools like Claude Code"),
0 commit comments