<초기 세팅>
- git 설치
- github 가입 > Repository 생성
- 저장소로 사용할 Local 폴더 경로에서 git init
- config 설정(--global은옵션)
git config --global user.name "name" git config --global user.email "email"
- remote 설정
git remote (원격저장소이름) (github저장소URL)
- Local 저장소를 취소하고싶다면 해당 경로의 .git 파일을 삭제
- git config 설정 확인 > git config --list
- remote 설정 확인
git remote -v
<사용법>
- 현재 로컬저장소의 파일 상태 확인
git status
- 인덱스에 추가
git add 파일명
- 추가한 인덱스를 저장소에 기록
git commit -m "커밋메세지"
- 커밋한 로컬저장소 내용을 원격저장소에 기록
git push -u origin master