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

gh repo create needs a flag for what user/org to push the repo to #8976

Open
mehulkar opened this issue Apr 18, 2024 · 0 comments
Open

gh repo create needs a flag for what user/org to push the repo to #8976

mehulkar opened this issue Apr 18, 2024 · 0 comments
Labels
enhancement a request to improve CLI needs-triage needs to be reviewed

Comments

@mehulkar
Copy link

mehulkar commented Apr 18, 2024

Describe the feature or problem you’d like to solve

I want to push up a new repo to Github with:

gh repo create --public --push --remote origin --source . --description ''

But this pushes to my personal user by default. I'd like to push it to an org instead, and the --help text doesn't show an option to do that.

Proposed solution

Add a --org flag that lets you customize where to push

Additional context

When you don't specify all the other flags, the interactive wizard does ask you for a "Repository owner" and gives you a list of owners to choose from, so it seems like there should be a flag for it also.

@mehulkar mehulkar added the enhancement a request to improve CLI label Apr 18, 2024
@cliAutomation cliAutomation added the needs-triage needs to be reviewed label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement a request to improve CLI needs-triage needs to be reviewed
Projects
None yet
Development

No branches or pull requests

2 participants