Skip to content

rename repository command #1399

Closed
Closed

Description

@mrtrkmn

Describe the feature or problem you’d like to solve

It would be nice to rename repository through CLI.

Proposed solution

There will be no need to navigate through website which might create distract when web browser is used. Wİthout leaving coding area would be nice to archive repo.

Additional context

Normally, I was thinking to have rename functionality in user base, I mean, instead of renaming current repository, users should be able to list their repos and rename according to user's wish. For instance

gh repo list --user "mrturkmencom"

It will return unique ids per repo or name (-of course if user is authenticated already-), then user should be able to rename provided repo, like in given example below.

gh repo --rename mrturkmencom/testrepo mrturkmencom/reamedrepo

However, it does not completely fit usage of Github CLI from my understanding, since gh is used when there is a .git folder.

Hence, rename command could be used more simple way,

gh repo --rename newreponame

which should archive the repo where gh command is executed.

Activity

  1. added
    enhancement
    on Jul 20, 2020
  2. added
    core
    on Oct 7, 2020
  3. self-assigned this
    on Oct 6, 2021
  4. linked a pull request that will close this issuegh repo rename #4450on Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

coreenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions