glab icon indicating copy to clipboard operation
glab copied to clipboard

`glab repo create` stops when a remote named "origin" already exists

Open RoneoOrg opened this issue 3 years ago • 1 comments

Hi there,

When using glab repo create,

  • a repo is successfully created
  • then glab tries to add this repo as a git remote for the current directory.

Problem

If a remote named origin already exists, glab stops here and no remote is added. Then it's a long procedure to get it done.

Suggestion: Is it possible to fall back to another remote name, or maybe prompt the user?

My Environment

  • Version used : glab version 1.22.0 (2022-01-10)
  • Operating System and version: Debian 11
  • Remote: gitlab.com

Thank you, glab is awesome!

RoneoOrg avatar Jun 10 '22 18:06 RoneoOrg

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.

clemsbot avatar Jul 11 '22 03:07 clemsbot