repository 생성
원격지 리포지터리 생성
인텔리제이 프로젝트 생성
git remote add origin [git주소]
git add .
git commit -m "커밋메시지"
git push origin main
브랜치가 있을 경우
(main) git checkout -b 1Week
(1Week) 1Week 에서 작업과 커밋의 반복
수요일 오후
(1Week) git push origin main
(1Week) git push origin 1Week
(GitHub) PR(1Week -> main)
git init
git config --global init.defaultBranch # 확인
git config --global init.defaultBranch main # 안되어 있으면
git config --global user.email # 사용자 email 확인
git config --global user.email "깃허브에 가입할 때 사용한 이메일 혹은 자주사용하는 이메일" # 안되어 있으면
git config --global user.name # 사용자 이름 확인
git config --global user.name "깃허브 ID" # 안되어 있으면
git remote -v # 연결되어 있는 원격 리포지터리 목록, 현재는 없음
git remote add origin https://github.com/jhs512/demo-2023-10-19 # 원격 리포지터리 연결
git remote -v # 연결되어 있는 원격 리포지터리 목록, origin 출력됨
git pull origin main # origin 에 있는 main 브랜치의 내용을 현재 리포지터리(저장소)의 메인 브랜치에 복사(다운로드)