Horje
git init remote 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
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
add github repo
create a new repository on the command line
echo "# {Repo Name}" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/cdcdianne/ReactJS-TheMovieDB.git
git push -u origin main
                
push an existing repository from the command line
git remote add origin https://github.com/cdcdianne/ReactJS-TheMovieDB.git
git branch -M main
git push -u origin main
git init remote repository
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
Source: kbroman.org




Shell

Related
install bootstrap vue laravel 7 Code Example install bootstrap vue laravel 7 Code Example
tar file linux Code Example tar file linux Code Example
download clamav ubuntu 20 Code Example download clamav ubuntu 20 Code Example
env variable for access key and secret key in terraform Code Example env variable for access key and secret key in terraform Code Example
git command to remove file from staging area Code Example git command to remove file from staging area Code Example

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