If you generated your SSH key by following the instructions in " Generating a new SSH key and adding it to the ssh-agent", you can add the key to your account with this command. gh ssh-key add KEY-FILE -title "personal laptop" To include a title for the new key, use the -t or -title flag. For example, find an issue to work on with gh issue status or gh issue list -assignee me. Start working with GitHub in the command line. In the command line, authenticate to GitHub. If you're prompted to request additional scopes, follow the instructions in the command line. Install GitHub CLI on macOS, Windows, or Linux. To add an SSH authentication key to your GitHub account, use the ssh-key add subcommand, specifying your public key. For more information, see gh auth login in the GitHub CLI documentation.Īt present, you can only use GitHub CLI to add SSH authentication keys, you cannot add SSH signing keys. To learn more about GitHub CLI, see " About GitHub CLI."īefore you can use the GitHub CLI to add an SSH key to your account, you must authenticate to the GitHub CLI. For more information, see " Managing remote repositories." For more information, see " Generating a new SSH key and adding it to the ssh-agent."Īfter adding a new SSH authentication key to your account on, you can reconfigure any local repositories to use SSH.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |