gh
If port 22 isn’t available in your network and you cannot use key-pairs to authenticate to github. You can use the internal github-tool gh
, which uses https.
multiple accounts#
switch accounts#
gh auth status
repo not found#
Can happen if switch accounts. Re-auth with this command:
gh auth refresh -h github.com -s repo