Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
Zheaoli opened this issue Nov 30, 2024 · 2 comments
Open
1 task done

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

Zheaoli opened this issue Nov 30, 2024 · 2 comments
Labels
⭐ enhancement Improvements for existing features

Comments

@Zheaoli
Copy link
Contributor

Zheaoli commented Nov 30, 2024

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.
@Zheaoli Zheaoli added the ⭐ enhancement Improvements for existing features label Nov 30, 2024
@Zheaoli
Copy link
Contributor Author

Zheaoli commented Nov 30, 2024

@frostming WDYT? I would like to submit a PR for this

@frostming
Copy link
Collaborator

It's good to add, also refer to related issue: #2220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

No branches or pull requests

2 participants