Git hub 사용법
버전관리
컴퓨터 파일의 변경사항을 추적하고 여러 사용자들 간에 해당 파일 작업을 조율하기 위한 대표적인 버전 관리 시스템(VCS)
VScode 터미널 창 열고 적기
git config --global core.autocrlf input // window는 true
git config --global user.name '이름'
git config --global user.emal '이메일'
git config --global --list // 입력 확인 (mac q키누르고 나가기)
git status
git add .
git commit -m 'Start project'
git log
git remote add origin 주소
git push orgin master
스타벅스 예제 Github에 업로드!
## macOS
$ git config --global core.autocrlf input
## Windows
$ git config --global core.autocrlf true
## 커밋(버전 생성)을 위한 정보 등록
$ git config --global user.name 'YOUR_NAME'
$ gif config --global user.email 'YOUR_EMAIL'
## Q키를 눌러서 종료!
$ git config --global --list
$ git init
# 현재 프로젝트에서 변경사항 추적(버전 관리)을 시작.
$ git add index.html
# 변경사항을 추적할 특정 파일(index.html)을 지정.
$ git add .
# 모든 파일의 변경사항을 추적하도록 지정.
$ git commit -m '프로젝트 생성'
# 메세지(-m)와 함꼐 버전을 생성.
$ git remote add origin http://github.c...
# origin이란 별칭으로 원격 저장소를 연결
$ git push origin master
# origin이란 별칭의 원격 저장소로 버전 내역 전송.