create repo github code example
Example 1: set up git repository
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/username/new_repo
git remote add origin [email protected]:username/new_repo
git push -u origin master
Example 2: create a repository git terminal
git init
git add somefile
git commit -m "initial commit"
git remote add origin https://github.com/username/new_repo
git push -u origin master
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/username/new_repo
git remote add origin [email protected]:username/new_repo
git push -u origin master
Example 3: 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 4: 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 5: git create github repo
git init
git add .
git commit -m 'Initial commit'
gh repo create