Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemote repository configured #893
Comments
|
Thank you for the feedback! If I understand, you are suggesting that we ask the user what gh should do in case you called |
|
@mislav, exactly. Because with the message fatal: remote origin already exists. as showing for the user and the repo will be created on Github, I believe that it can be unclear for the user at that moment. Imagine that I'm using the |
When we're executing the command to create a repository, the following arguments are:
gh repo create nameAfter that the repository will be created on Github, however, when there is a remote track configured, I presume that CLI could print a message to the user showing that there is a remote setting. Instead it;
✓ Created repository OWNER/REPO on GitHubfatal: remote origin already exists.git: exit status 128Proposed solution
Maybe we can print a message with options Y/N to continue.
YES argument
There is a remote URL configured, do you want to create the repo?✓ Created repository OWNER/REPO on GitHubNO argument
exit from CLI.