Answers for "github create new repo with existing project"

4

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
0

github create repo

git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/<your username>/<repository>.git
git push -u origin main
Posted by: Guest on November-02-2021

Code answers related to "github create new repo with existing project"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language