Answers for "initialize github repository"

11

push code to github command line

git add .
git commit -m "message for the commit"
git remote add origin https://url-of-github-repo
git push origin master
Posted by: Guest on April-30-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
1

create new repository on the command line

git init
git add README.MD
git commit -m "commit message"
git remote add origin git url_of_github_repo
git push origin master
Posted by: Guest on June-08-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language