Skip to content

Allow gh to transfer ownership of repo from one org to another #5292

@scott-doyland-burrows

Description

@scott-doyland-burrows

I would like to be able to use the gh CLI to transfer ownership from one org to another, something such as:

gh repo transfer-ownership source-org/source-repo target-org/target-repo

Sometimes the repo needs to be made public to transfer, and then set back to private, I think this is when 2FA is switched on.

If the command could handle all things required to transfer the repo, then it'd be great, eg:

set to public on source org and then back to private on target org
rename on target org
add to a team on target org
whatever else all done with just the one command, to save scripting multiple commands to achieve the transfer.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-reporelating to the gh repo command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions