Horje
add github repo 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
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
add to a github repo
git init
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/DivyanshuLohani/{repoName}.git
git push -u origin main
Source: github.com
init step way to create repository git
git configuration 




Shell

Related
linux get date yyyymmdd Code Example linux get date yyyymmdd Code Example
Ubuntu 18.04 Mouse right click not working Code Example Ubuntu 18.04 Mouse right click not working Code Example
store environment variables firebase Code Example store environment variables firebase Code Example
poop Code Example poop Code Example
zsh add to PATH permanently Code Example zsh add to PATH permanently Code Example

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