최초 한번 설정 해 줘야 할 것.
-- or - 붙으면 플래그 라고 한다. config 같은 옵션의 세분화된 옵션
현재 프로젝트에서 변경사항(버전 관리) 추적을 시작
git init
windows 개행 문자 설정
git config --global core.autocrlf true
macOS 개행 문자 설정
git config --global core.autocrlf input
사용자 정보
git config --global user.name 'Malza0408'
git config --global user.email '[email protected]'
git config --global --list
현재 git 의 상태 출력
git status
모든 파일의 변경사항을 추적하도록 설정
git add .
메시지(-m)와 함께 버전을 생성
git commit -m 'starbucks'
commit 으로 등록한 버전을 확인하자
git log
origin 이란 별칭으로 원격 저장소를 연결. github 에 통로가 생겼다.
git remote add origin <https://github.com/Malza0408/starbucks.git>
origin 이란 별칭의 원격 저장소로 버전 내역 전송
git push origin master
git push origin master // 잘 되었나 확인. 잘 되었다. Everything up-to-date