Login Github with Github CLI on Windows


Read more:Install Github CLI on Windows

Step 1: gh auth login

D:\AppServ\www\phpMoAdmin-MongoDB-Admin-Tool-for-PHP>gh auth login
? What account do you want to log into?  [Use arrows to move, type to filter]
> GitHub.com
  GitHub Enterprise Server

Step 2:

D:\AppServ\www\phpMoAdmin-MongoDB-Admin-Tool-for-PHP>gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations?  [Use arrows to move, type
 to filter]
> HTTPS
  SSH

gh auth login

Step 3:

D:\AppServ\www\phpMoAdmin-MongoDB-Admin-Tool-for-PHP>gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? Authenticate Git with your GitHub credentials? (Y/n)

Step 4:

D:\AppServ\www\phpMoAdmin-MongoDB-Admin-Tool-for-PHP>gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI?  [Use arrows to move, type to f
ilter]
> Login with a web browser
  Paste an authentication token

Step 5:

D:\AppServ\www\phpMoAdmin-MongoDB-Admin-Tool-for-PHP>gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? 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: E006-13BE
- Press Enter to open github.com in your browser...

Use code: E006-13BE

Step 6:
github cli login 1

Step 7:
github cli login 2

Step 8:

D:\AppServ\www\phpMoAdmin-MongoDB-Admin-Tool-for-PHP>gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? 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: E006-13BE
- Press Enter to open github.com in your browser...
√ Authentication complete. Press Enter to continue...

Done!

D:\AppServ\www\phpMoAdmin-MongoDB-Admin-Tool-for-PHP>gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? 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: E006-13BE
- Press Enter to open github.com in your browser...
√ Authentication complete. Press Enter to continue...

- gh config set -h github.com git_protocol https
√ Configured git protocol
√ Logged in as sansamour