# 원격 브랜치 목록 보기
git remote -r
# 원격 브랜치 목록 업데이트
git remote update
# 다른 브랜치로 변경
git checkout -b 브랜치이름
# 변경사항 이전 commit으로 돌리기(삭제)
git restore
# 현재 브랜치 삭제
git branch -d 브랜치이름
#로컬 저장소의 .git 디렉토리 삭제
rm -rf ./.git
#git 초기화
git init
#git 커밋
git add .
git commit -m 'commit message'
#git branch명 변경
git branch -M main
#github 연동
git remote add origin "git주소"
#현재 상태 원격 저장소에 push
git push --force --set-upstream origin main
#git 원격 저장소에서 로컬 저장소로
git pull
#git 브랜치 변경
git switch 브랜치명
git branch 여러개 작업하는 이유?
git branch push 후 pull request 해주기!