Git
[Git] 프로젝트 Git 연결 및 소스 업로드
JoongHyun CHO
2021. 7. 26. 18:45
* git 시작
$ git init
* 전체 소스 add
$ git add --all
* 커밋
$ git commit -m "first commit"
* master branch 이동
$ git branch -M master
* 원격 저장소 추가 (private 저장소일 경우)
$ git remote add origin https://{user.name}:{user.password}@github.com/solitas0817/{프로젝트 이름}.git
* 원격 저장소 추가 (public 저장소일 경우)
$ git remote add origin https://github.com/solitas0817/{프로젝트 이름}.git
* master branch에 push
$ git push -u origin master