spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Make it work for existing git repo

Open amithegde opened this issue 1 year ago • 1 comments

I tried to initialize for an existing repo but it says directory already exists:

uvx --from git+https://github.com/github/spec-kit.git specify init spec-test ███████╗██████╗ ███████╗ ██████╗██╗███████╗██╗ ██╗ ██╔════╝██╔══██╗██╔════╝██╔════╝██║██╔════╝╚██╗ ██╔╝ ███████╗██████╔╝█████╗ ██║ ██║█████╗ ╚████╔╝ ╚════██║██╔═══╝ ██╔══╝ ██║ ██║██╔══╝ ╚██╔╝ ███████║██║ ███████╗╚██████╗██║██║ ██║ ╚══════╝╚═╝ ╚══════╝ ╚═════╝╚═╝╚═╝ ╚═╝

                                                                                                                        Spec-Driven Development Toolkit

Error: Directory 'spec-test' already exists

amithegde avatar Sep 08 '25 18:09 amithegde

You can workaround this error by using init --here. Please check Initialize specify within existing project

cartmedia avatar Sep 08 '25 19:09 cartmedia