Setup Git Repo

Initialize Git Repo

Create public repository on GitHub and copy url to clipboard

Open terminal on local machine

Create code-docs-## directory

mkdir <folder-name>

Navigate to folder

cd <folder-name>

Initialize git repository

git init

Name branch

git branch -m main

Create initial commit

git commit --allow-empty -m 'Initial commit'

Set remote url location of cloud repository

git remote add origin <url path>

Push repo and set default upstream repo and branch for pushing

git push --set-upstream origin main

Setup initial repo files

Create gitignore

npx gitignore node

Create README.md

echo '# Code Docs' >> README.md

Commit files

git add .
git commit -m 'Adds gitignore and README'
git push

Next:
Setup Node