Dev-Tools/git

git 원격저장소 생성 & local 저장소 추가

신비한 비 2023. 4. 13. 22:07
728x90

새로운 저장소 생성

echo "# mybatis-demo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M 'master'
git remote add origin git@github.com:luxury515/mybatis-demo.git
git push -u origin 'master'

로컬저장소 —> 원격저장소에 push

git remote add origin git@github.com:luxury515/mybatis-demo.git
git branch -M 'master'
git push -u origin 'master'


내저장소 바로가기 luxury515