Skip to content

Check branch name while developing #733

@Ovid

Description

@Ovid

My personal workflow is to get a bit of work done, make sure tests pass, and when a feature is done, I rebase on top of main and push. I delete my branch and start on the new one.

$ git branch -d 001-we-re-going
$ git checkout -b 002-sqlite

And that's when spec-kit started behaving erratically (such as forgetting commands it can automatically run). Taking longer to run, not respecting commands. Couldn't figure it out until I ran /implement to let it just do its thing, wondering if that would restart it. It wouldn't work because it was still expecting the old 001-we-re-going branch name. Meanwhile, I have a code quality check and there were tons of issues which weren't showing up before.

That's when I discovered that if I ran git mv specs/001-we-re-going specs/002-sqlite, it started working fine again. There was no warning before that.

I am sure I missed a step in the docs somewhere, but it I spent four hours writing a huge spec, building a plan, running /clarify, building the tasks, reordering them, running /analyze repeatedly until it was good and I don't want to have to create a spec for each branch (which is what I had). I look at each branch as an epic and each task as a separate ticket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions