create new repo in github code example

Example 1: how to create new repository in github

git init
• git add .git commit -m "first commit"git remote add
            origin https://github.com/sd1511/FinraDeck.git
• git push -u origin master

Example 2: starting a new github repo

//it assumes theres at least one commit on the local repo
git init
git remote add origin [email protected]:username/new_repo
git push -u origin master

Example 3: git create github repo

git init
git add .
git commit -m 'Initial commit'
gh repo create # => With the new GitHub CLI