Windows
Install Git
To install git,
Open your WSL terminal
Run
sudo apt updateRun
sudo apt install git-allCheck
gitis installed by runninggit --version(you might need to close and reopen the terminal)
Configure Git
To configure your git installation, add your user details:
bash
git config --global user.name "John Doe"
git config --global user.email johndoe@example.comSign up to Github
If you haven't done so already, create an account with Github.
Authenticate with Github
The easiest way is using the gh command line tool.
Install
ghby runningsudo apt install ghRun
gh auth loginSelect "Github.com", "HTTPS" and "Sign in with browser"
Copy the one-time code and paste it into the device login page
Click "Authorize" on the confirmation page, and you should see "Authorization complete" in your terminal.
That's it! Git and Github are set up and connected.
Corndel