Answers for "how to link a directory to an existing github repo"

6

github add directory to repository

git init
git add <folder1> <folder2> <etc.>
git commit -m "Your message about the commit"
git remote add origin https://github.com/yourUsername/yourRepository.git
git push -u origin master
git push origin master
Posted by: Guest on May-15-2020
0

link folder to github repo

$ git init
$ git remote add origin <repository_location>
$ git push origin <branch_name>
Posted by: Guest on April-07-2022

Code answers related to "how to link a directory to an existing github repo"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language