1. GitHub Repository 생성
2. OS별 whiteSpace문제가 있을수 있기 때문에 아래 명령어 실행
OS가 Window일때 : git config --global core.autocrlf true
OS가 Linux 혹은 MAC계열일때 : git config --global core.autocrlf true input
3. 프로젝트 디렉토리에서 아래 명령어실행
git init
git add .
git commit -am "[커밋명]"
git remote add origin "[1번의 git repository 주소]"
git remote -v => 원격 저장소 확인
3. git push origin master
'Git' 카테고리의 다른 글
Git Error CRLF will be replaced by LF (0) | 2021.03.17 |
---|