Horje
git create a new repository Code Example
set up git repository
# New local repository
git init
git add .
git commit -m "Initial commit"

# New remote repository
# Create remote repository (likely on github), then:
git remote add origin https://github.com/username/new_repo #https
git remote add origin git@github.com:username/new_repo #ssh
# Now push
git push -u origin master
Source: kbroman.org
git init repo
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 
Source: kbroman.org
how to initialize a git repository command line
# New local repository
git init
git add .
git commit -m "Initial commit"

# New remote repository
git remote add origin git@github.com:username/new_repo #ssh
# Now push
git push -u origin master
upload new repo to git
echo "# Can-I-Shop-2" >> README.md
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/username/projectname.git
git push -u origin master
                
create new repository on the command line
git init
git add README.MD
git commit -m "commit message"
git remote add origin git url_of_github_repo
git push origin master
git create a new repository
echo "# content" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/sandy1310/content.git
git push -u origin main
Source: github.com




Shell

Related
convert vmdk to qcow2 Code Example convert vmdk to qcow2 Code Example
linux stop running script Code Example linux stop running script Code Example
git add command Code Example git add command Code Example
raid 0 Code Example raid 0 Code Example
Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager. Code Example Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager. Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11