Skip to content

Add git init related option to fedify init #719

@2chanhaeng

Description

@2chanhaeng

Summary

Add a flag to fedify init that controls whether git init is run in the newly created project directory.

Motivation

Most users initialize a Git repository immediately after scaffolding a new project. Requiring a manual git init step is unnecessary friction. Other CLI scaffolding tools (e.g., npm create vite, cargo new) handle this automatically.

Proposed behavior (draft)

One possible approach:

  • --git-init: always run git init
  • --skip-git-init: never run git init
  • Neither flag provided: prompt the user interactively
  • Both flags provided: prompt the user interactively (conflict)

Alternatively, only one flag could be added and the other made the default (e.g., run git init by default, with --skip-git-init to opt out — or vice versa).

The exact design is open for discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions