Sign up for a free GitHub account if you haven’t already. I recommend that you use a permanent, personal email.
Let’s install the GitHub CLI, which will make working with remote GitHub repositories easier.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install gh
and follow the on-screen instructions.Download and install https://github.com/cli/cli/releases/download/v2.81.0/gh_2.81.0_windows_amd64.msi
gh
. For example, C:\Users\laymanl\gh
bin
directory inside. Drag that bin
directory to the C:\Users\YOUR_ID\gh\
directory you created.user environment variables
. Select the program Edit the user environment variables for this account
New
button, then Browse
C:\Users\YOUR_ID\gh\bin
directory. Click “Okay”.gh
and you should see a list of available commands.Run gh auth login
and follow the onscreen instructions to register your computer with GitHub.
Once you have finished, your Terminal and Browser should look like this:
That’s it. We are now ready to work with Git and GitHub.