소스코드가 변경된 이력을 쉽게 확인 가능
특정 시점에 저장된 버전과 비교하거나 특정 시점으로 돌아갈 수 있음
Workspace 이동하고 Working Directory 생성
cd (이동)
mkdir (Directory 생성)
git 초기화 / 해당 폴더를 깃에서 관리 시작
git init
파일 생성
touch *.txt
파일 확인
ls
git status 를 습관화해야 함.
directory에서 변경된 파일을 index에 추가
git add *.txt
변경된 사항을 head에 반영
git commit -m "설명" *.txt
Create Respository
토큰 생성
등록
git remote add origin https://"username":"token"@github.com/"repository".git
변경 내용 PUSH
git push origin "branch"
local 내용 가져오기
git pull origin "branch"
git log
2.git editor
git config --global core.editor "editorname" --wait
git config --global -e
git diff "branch1" "branch2"
git gragh 확인
branch 병합
git diff "branch1" "branch2"
Conflict 해제
git add + git commit