Git 프로젝트 업로드

sunj - Apr 19 - - Dev Community
//처음 프로젝트 올릴 때만
git init

//깃허브에서 레퍼지토리를 만든다
git remote add origin [원격저장소 주소]

//깃 브렌치 확인
git branch

//깃 브렌치 생성과 체크아웃
git checkout -b dev
Enter fullscreen mode Exit fullscreen mode
//파일 업로드
git pull origin [브랜치 이름]

//전부 올리기
git add .

git commit -m "commit message"
git push origin [브랜치 이름]
Enter fullscreen mode Exit fullscreen mode

참조 : https://shortcuts.tistory.com/8
https://mylko72.gitbooks.io/git/content/branch/checkout.html

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .