Horje
create a new repository on command line github Code Example
create a new repository on command line github
## Create a new repository on the command line
echo "# REPOSITORYNAME" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/USERNAME/REPOSITORYNAME.git
git push -u origin main
## or Push an existing repository from the command line
git remote add origin https://github.com/USERNAME/REPOSITORYNAME.git
git branch -M main
git push -u origin main
Git create a new repository on the command line
echo "# alx-zero_day" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Kseperep1/alx-zero_day.git
git push -u origin main
Source: github.com
create a new repository on the command line
echo "# Assignment-4" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/MinhajSiam/Assignment-4.git
git push -u origin main
Source: github.com




Shell

Related
vim insert text at the the beginning of multiple lines Code Example vim insert text at the the beginning of multiple lines Code Example
git find merge conflicts Code Example git find merge conflicts Code Example
uncommit last commit in local Code Example uncommit last commit in local Code Example
git reset last commit keep changes Code Example git reset last commit keep changes Code Example
git revert commit but keep changes Code Example git revert commit but keep changes Code Example

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