1.1 Create GitHub Repository
This tutorial will demonstrate how to configure your git
Command Prompt tool to access your Github account. This will enable you to pull our public repository and then push the code to your repository in your account. Lets get started.
PreRequisites
Registrations
Installations
Generate a Personal Access Token (PAT)
Before you move to the next step and pull code down from our code repository, you will need to authenticate to your Github account to push your new code to the repository you just created.
-
Open your Terminal or Command Prompt
Note: On Windows computers, press Windows Key +
X
and click Command Prompt/Windows Powershell/Windows TerminalNote: On Mac computers, press
CMD
+ space bar to open Spolight Search, type “Terminal” and click “Terminal” - Run the following command to make sure git is installed
git version
- Generate PAT
- Login to GitHub in your browser
- Click your profile icon in the upper right corner, then click
Settings
- Click
Developer Settings
in the left side menu - Click
Personal Access Tokens
,Generate New Token
- Enter your password
- Set Note to ‘Authenticate my laptop’
- Set Expiration to ‘No Expiration’
- Select all Scopes and click
Generate Token
- Copy your token and paste somewhere safe
Create a GitHub Repository
- Login to GitHub in your browser
- Click the plus icon next to your profile icon in the upper right corner
- Click
New repository
- Set the name as anything you want. This will be the in your website link. (Don’t forget it!)
- Click
Create Repository
-
Under
Quick Setup
, copy thehttps://github.com/<your-github-username>/<your-repo-name>.git
Note: Remove aligator clips
<
&>
- You have now created a new Repository. Go to the next section. This section is complete.