Answers for "git add code to existing repository"

1

git existing code to new repository

cd myapp
git init
git remote add origin https://github.com/myname/myapp.git
git add .
git commit -m "Initial commit"
git push -u origin master
Posted by: Guest on May-18-2021
4

git push existing code to new repository

git remote add origin <remote repository URL>
Posted by: Guest on May-28-2020
4

how to upload existing project to github

git remote add origin remote repository URL
git remote -v
git push -f origin master
Posted by: Guest on June-16-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 "git add code to existing repository"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language