new repo 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: new repository github used
$ git init
$ git add .
$ git commit -m "First commit"
$ git remote add origin remote repository URL
$ git remote -v
$ git push origin main
Example 4: git create github repo
git init
git add .
git commit -m 'Initial commit'
gh repo create