Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

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

@RoneoOrg

Description

@RoneoOrg

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions