create new github repository 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: how to push existing project to github

git remote add origin 
      https://github.com/asd/FinraDeck.git (github adresi)
• 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

Tags:

Misc Example