git 기초
git clone
- 로컬 디렉토리 생성 : mkdir "디렉토리명"
- git config --global init.defaultBranch main
git config --global user.name "github 아이디"
git config --global user.email "guthub 이메일"
- git config --global --list로 확인
- git clone "github 주소"
- git status로 상태 확인
git commit & push
- git add .
- git commit -m "커밋 메시지"
- git push origin main
- git status로 상태 확인
git pull
- git pull
- git status로 상태 확인
브랜치명이 달라 push하다가 문제가 발생한 경우
- github에서 브랜치 merge
- 이용하고 싶지 않은 브랜치 삭제
- 로컬에서 디렉토리 삭제
- 다시 git clone