Answers for "how to upload git repo to github"

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
8

upload new repo to git

echo "# Can-I-Shop-2" >> README.md
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/username/projectname.git
git push -u origin master
Posted by: Guest on August-06-2020
-3

how to link a repo to a project on github

$ git init
Posted by: Guest on December-10-2019

Code answers related to "how to upload git repo to github"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language