Whoa, the shadcn package init script silently commits its changes to your git repo with zero warning. Doesn't ask permission, just does it. And the commit message is utterly useless, too: "feat: initial commit".

It's a bit disconcerting, like opening your diary and finding that a stranger has written in it, lol.

#webdev

Okay, it's a known issue and they're gonna do something about it. Whew!

https://github.com/shadcn-ui/ui/issues/10320

[bug]: `shadcn init` silently creates a `feat: initial commit` git commit, breaking workflows that rely on explicit commit control · Issue #10320 · shadcn-ui/ui

Describe the bug Running npx shadcn@latest init in an existing git repository silently runs git add . && git commit -m "feat: initial commit" at the end of initialization, without any prompt or CLI...

GitHub