Skip to content

Initial commit πŸ‰Β #131

@AliceR

Description

@AliceR

Feature Request: Automatically create initial commit after scaffolding a new project

Context

Our project-seed CLI currently runs git init as part of the setup process β€” see setup-git-hooks.ts β€” but it doesn't create an initial commit.

In practice, it's common to manually run:

git add .
git commit -m "chore: initial project scaffold"

after scaffolding. However, this step can be easy to forget. Having the scaffolded template as its own initial commit helps maintain a clean history and makes future changes easier to review.

Proposal

After the project scaffold is generated and git init has been executed, the CLI should automatically:

  1. Stage all generated files (git add .)
  2. Create an initial commit (e.g. git commit -m "chore: initial project scaffold" -m "b🍍")

Benefits

  • Keeps scaffolded code separate from later commits
  • Improves clarity in code reviews and diffs
  • Reduces manual setup steps and the chance of forgetting the first commit

Related

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