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
Proposal: Initialize a git repository and create an initial commit on scaffold #1483
When scaffolding a new project with vp create, there is no built-in way to
initialize a git repository.
Users need to manually run git init and git add -A && git commit -m "Initial commit" after scaffolding, which is
a common step in every new project setup.
Adding a flag (e.g. --git) would streamline the project creation flow and bring vp create in line with other popular scaffolding tools (e.g. create-next-app, nuxt init) that offer git initialization out of the box.
Suggested solution
Add a --git / --no-git flag to vp create.
In interactive mode, prompt the user with a confirm dialog (default: No)
In non-interactive mode, default to skipping git initialization
When enabled, run git init before installing dependencies,
then git add -A && git commit -m "Initial commit from Vite+" after formatting completes
Activity
feat(cli): Initialize a git repository and create an initial commit o…