1. vs code에서 blog 수정 완료

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

태그:

카테고리:

업데이트: