Material for Platform Based Development
gh setupgh is the official command line interface for GitHub (i.e. the official terminal command)
In this guide, we will give you the instructions for installing gh in your Windows machine with Ubuntu WSL installed.
Follow in installation instructions for Ubuntu in this link.
After gh was installed, type in your terminal: gh auth login
Select GitHub.com
Select HTTPS
Press 'y' to Authenticate Git with your Github credentials
Select Login with a web browser (this will take a little bit).
Copy the passcode prompted and press enter. A browser will open.
Type the passcode in the browser.
Press the authorize button
Type your GitHub password, and you are set!
Go back to the terminal. Press a couple of enters and it should say at the end: logged in as <your_github_user_id>
You are done! Now you can use the official Github Command in your terminal!