Answers for "add repo via 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

To add repo from github in linux

#To add any repo from github to your linux type
git clone <repo url>
# for example.
git clone https://github.com/Screetsec/TheFatRat.git
#The example above installs fatrat, a tool for hacking.
Posted by: Guest on April-19-2021

Code answers related to "add repo via terminal"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language