Answers for "add git repo in termius"

45

how to set up a git repo on terminal

# 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 [email protected]:username/new_repo #ssh
# Now push
git push -u origin master
Posted by: Guest on March-05-2020
1

git repo add

echo "# genius-car-mechanicls-mongodb-server" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/coderSabbirr/genius-car-mechanicls-mongodb-server.git
git push -u origin main
Posted by: Guest on October-24-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language