Answers for "making a git repo from terminal"

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
0

github create repo from terminal

gh repo create project-name
Posted by: Guest on November-09-2021
0

can i create a git repository via terminal

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/<reponame>.git
git push -u origin master
Posted by: Guest on September-17-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language