* 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
'Git' 카테고리의 다른 글
[Git] 로그인 계정 확인 및 계정 변경 (0) | 2021.07.26 |
---|---|
[Git] private 저장소 Clone 이슈 (0) | 2021.07.19 |