git 명령어 정리
개행문자(Newline) 설정
$ git config --global core.autocrlf input
$ git config --global core.autocrlf true
커밋(버전 생성)을 위한 정보 등록
$ git config --global user.name 'YOUR_NAME'
$ git config --global user.email 'YOUR_EMAIL'
구성 확인(Q키를 눌러서 종료!)
$ git config --global --list
현재 프로젝트에서 변경사항 추적(버전 관리)을 시작
$ git init
변경사항을 추적할 특정파일(index.html)을 지정
$ git add index.html
모든 파일의 변경사항을 추적하도록 지정
$ git add .
메시지(-m)와 함께 버전을 생성(메시지는 한글도 가능)
$ git commit -m '프로젝트 생성'
$ git commit -m 'main.js 추가'
$ git commit -m 'index.html 수정'
origin이란 별칭으로 원격 저장소를 연결
$ git remote add origin https://github.com/JEON-HYERIN/test.git
origin이란 별칭의 원격 저장소로 버전 내역 전송
$ git push origin master