축하합니다

Git 중급

George Boorman

Curriculum Manager, DataCamp

브랜치

버그 수정, ai-assistant, main 브랜치의 커밋과 병합 이미지

Git 중급

브랜치 작업

  • 모든 브랜치 보기
git branch
  • 기존 브랜치로 전환
git switch hotfix
  • 새 브랜치 생성 및 전환
git switch -c hotfix
  • 두 브랜치 비교
git diff main hotfix
  • 브랜치 이름 변경
git branch -m hotfix bugfix
  • 브랜치 삭제
git branch -d hotfix
Git 중급

브랜치 병합

  • main에서 ai-assistantmain에 병합:
git merge ai-assistant
  • 다른 브랜치에서: git merge source destination
git merge ai-assistant main
  • 병합 충돌 처리
Git 중급

원격 다루기

  • 원격 저장소 클론
git clone https://github.com/datacamp/project
  • 모든 원격 정보 확인
git remote -v
  • 새 원격 추가
git remote add george https://github.com/george_datacamp/repo 
Git 중급

로컬과 원격 저장소 동기화

git fetch origin
git pull origin
git push origin documentation
Git 중급

다음 단계

Git 중급

연습해 봅시다!

Git 중급

Preparing Video For Download...