Git 이란?
- (분산) 버전 관리 시스템 - DVCS(Distributed Version Control System)
- 코드의 History를 관리하는 도구.
- 개발된 과정과 역사를 볼 수 있으며, 프로젝트 이전 버전을 복원하고 변경 사항을 비교, 분석 및 병합이 가능
- 차이(diff) 가 무엇이고, 수정 이유를 log로 남길 수 있다.
Git_Command
commit
: 커밋 만들기
-m
옵션으로 수정 이유와 같은 코멘트를 남길 수 있다.
git commit -m "add README.md"
- Author(작성자) 설정
user.name
: 사용자명
user.email
: 이메일 주소 (GitHub 계정과 일치)
git config --global user.name <사용자명>
git config --global user.email <이메일 주소>
git config --global -l
git remote add origin <GitHub Repository 주소>
git remote -v
push
: GitHub or GitLab 과 같은 곳에 새로 생성한 커밋들 반영
git push origin master