카테고리 없음
[github] Adding repository
Jenny Noh
2024. 7. 7. 04:58
Creating a new repository on the command line
echo "# <github repository name>" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin <repository 주소 url>
git push -u origin main
Pushing an existing repository from the command line
git remote add origin <repository 주소 url>
git branch -M main
git push -u origin main