Skip to content

Ask to git init on repo create  #2099

@gleich

Description

@gleich

Describe the feature or problem you’d like to solve

If you run gh repo create in a folder that isn't initialized with git the command fails.

Proposed solution

Instead of failing the user would be asked if they want to initialize the current folder a git repo.

Additional context

I would love to take up the implementation of this! The go-git module seems like the easiest way to implement this but it is a big dep. Should we just run an exec command or is there some other way to do it?

p.s. thank you for making this awesome cli :)

Metadata

Metadata

Assignees

Labels

enhancementa request to improve CLIhelp wantedContributions welcome

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions