1.Github command
-
vs code에서 blog 수정 완료
- 현재 branch 확인
git branch
- (필요시) 새로운 branch 생성 + 이동
git checkout -b <branch_name>
- 브랜치 이동
git checkout <branch_name>
- 로컬 repository 최신화
- pull: 로컬 <- 원격
git pull origin main git pull <원격 repository> <다운받고 싶은 원격 repository의 branch>
- add :
git checkout <branch_name>
- commit :
git commit -m <"commit message">
- 원격 repository로 수정사항 보내기
- push: 원격 -> 로컬
git push origin main git push <업로드할 원격 repository> <원격 repository의 branch 이름>
- 보통 수정사항은 main으로 업데이트 하지 않고 따로 생성한 branch에 업데이트한다. - origin : 무조건 원격 repository를 의미