-
-
Save ctran/df55add52a40ee2394f394af4eb5a3ad to your computer and use it in GitHub Desktop.
GH CLI Transfer Repository Ownership Alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.config/gh/config.yml | |
# What protocol to use when performing git operations. Supported values: ssh, https | |
git_protocol: https | |
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment. | |
editor: | |
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled | |
prompt: enabled | |
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager. | |
pager: | |
# Aliases allow you to create nicknames for gh commands | |
aliases: | |
co: pr checkout | |
transfer: api repos/$1/transfer -f new_owner=$2 | |
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport. | |
http_unix_socket: | |
# What web browser gh should use when opening URLs. If blank, will refer to environment. | |
browser: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gh alias \ | |
set transfer 'api repos/$1/transfer -f new_owner=$2' | |
# gh alias list | |
# gh alias set --help | |
# https://github.com/cli/cli/issues/5292 | |
# https://cli.github.com/manual/gh_alias_set | |
# https://cli.github.com/manual/gh_api |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment