Table of Contents

Git Authenticating with GitHub

Return to Git Usernames, git commit Email Address, Git Authentication, Git Security, GitHub Authentication, GitHub Security, Git, GitHub, gh, GitHub CLI, Installing GitHub CLI, brew install gh, choco install gh, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT

When you connect to a GitHub repository from Git, you will need to authenticate with GitHub using either GitHub HTTPS or GitHub SSH.

Note: You can authenticate to GitHub using GitHub CLI, for either HTTP or SSH. For more information, see gh auth login.

If you git clone with HTTPS, you can cache your GitHub credentials in Git using a credential helper. For more information, see “Cloning with HTTPS urls” (https://docs.github.com/en/github/getting-started-with-github/about-remote-repositories/#cloning-with-https-urls) and “Caching your GitHub credentials in Git (https://docs.github.com/en/github/getting-started-with-github/caching-your-github-credentials-in-git).”

Connecting over SSH

If you git clone with SSH, you must generate SSH keys on each computer you use to git push to GitHub or git pull from GitHub. For more information, see “Cloning with SSH urls” (https://docs.github.com/en/github/getting-started-with-github/about-remote-repositories/#cloning-with-ssh-urls) and “Generating a new SSH key. (https://docs.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)”

gh auth login

What account do you want to log into? GitHub.com?

What is your preferred protocol for Git operations? GitHub HTTPS

Authenticate Git with your GitHub credentials? Yes

How would you like to authenticate GitHub CLI? Login with a web browser

First copy your one-time code: XXXX-XXXX

Press Enter to open github.com in your browser

✓ Authentication complete.

gh config set -h github.com git_protocol https

Configured git protocol

✓ Logged in as AzureCloudMonk

Authorize GitHub CLI This GitHub authorization was requested from PLANET EARTH XXX.XXX.XXX.XXX on September 9th, 2022 at 9:09 (PDT). Make sure you trust this device as it will get access to your account.

@AzureCloudMonk - GitHub CLI by GitHub

wants to access your AzureCloudMonk account

Existing access

Create gists

Read org and team membership, read org projects

Full control of private repositories

Update github action workflows

Confirm access

Security key

When you are ready to authenticate, press the button below.

Having problems?

Tip: You are entering sudo mode. After you've performed a sudo-protected action, you'll only be asked to re-authenticate again after a few hours of inactivity.

Authentication code

More information about sudo mode authentication

XXXXXX

Open the two-factor authenticator (TOTP) app on your mobile device to view your authentication code.

Congratulations, you're all set!

Your device is now connected.

https://github.com/login/device/success

Fair Use Sources

Fair Use Sources:

Git: Git Fundamentals, Git Inventor - Git Designer: Linus Torvalds, git commands, Git Username, git commit Email Address, Authenticating with GitHub from Git, GitHub, Version control, GitOps, Awesome Git. (navbar_git - see also navbar_github)

GitHub: GitOps, GitHub Copilot (Learn AI-Assisted Python Programming), GitHub for Major Software and Languages, GitHub Fundamentals, GitHub Inventor: GitHub and Git, GitHub Stars: GitHub Organization Ranking, GitHub Stars Ranking, GitHub Star Ranking for Repositories, GitHub Big Tech, Cloud Monk's favorite GitHub repos, gh plugin, git help, Version control, GitHub topics, Git topics, Git, GitHub repos, GitHub bibliography, Manning Git-GitHub Series, GitHub Actions, GitHub CodeSpaces, GitHub CLI, GitHub Free, GitHub Pro, GitHub Team, GitHub Enterprise, GitHub security (GitHub MFA - GitHub Passkeys) - GitHub Secrets - Authenticating with GitHub from Git (gh auth login), GLFS, GitHub Packages, GitHub alternative source code repos (GitHub - GitLab - AWS CodeCommit - Google Cloud Source Repositories - Bitbucket), Install Git, Git for Windows (choco search github, brew search github), Git for Linux, Git for macOS, GitHub glossary, Git glossary. (navbar_github - see also navbar_git, navbar_gitops, navbar_iac)


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.