Answers for "initialize git with github repository"

30

how to initialize a git repository command line

# New local repository
git init
git add .
git commit -m "Initial commit"

# New remote repository
git remote add origin [email protected]:username/new_repo #ssh
# Now push
git push -u origin master
Posted by: Guest on March-25-2020
0

initialize github repository

$git init
$git config --global user.email "your email"
$git config --global user.name "Your name"
$git remote add origin https://github.com/username/new_repo(Can be copied from github directly)
$git push -u origin master
Posted by: Guest on May-30-2021

Code answers related to "initialize git with github repository"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language