Skip to content

Support init a git repo and add generate file to git #3322

Description

@Zheaoli

Feature Description

For now, pdm init command just add .gitignore file but not init the git repo locally

Problem and Solution

I propose support init git with following flag in pdm init command

  1. --enable-git to represent init the git repo or not (maybe enable default?)
  2. --default-branch to set the default branch name (main as default)

Additional Context

No response

Are you willing to contribute to the development of this feature?

  • Yes, I am willing to contribute to the development of this feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⭐ enhancementImprovements for existing features

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions