git init: git저장소로 설정 .git파일 생성된다.
git status: git의 현재 상태 확인
git add: 파일을 git에 추가함
git commit -m: 메시지를 추가하여 커밋함. -m "ㅎㅇ"
git restore: 마지막 commit상태로 복구시킴
git branch: 브랜치 생성
git switch: 브랜치 이동할 때
git merge: merge 시킬 때
git remote remove: 연결 끊기
git remote add: 연결하기
git fetch: fetch할때 사용
git pull: fetch와 merge된 파일을 땡겨옴
git checkout: swithc와 비슷하나 충돌 위험 있음, 최근엔 사용하지 않는 편
git config --global user.email "you@example.com"
git config --global user.name "Your Name"