저장소 만들기

Git 입문

George Boorman

Curriculum Manager, DataCamp

테크 분야에서의 정신 건강 프로젝트

두 개의 파일 funding과 report, data라는 디렉터리, 그리고 dot-git이라는 또 다른 디렉터리가 있는 Git 저장소의 이미지

Git 입문

Git 저장소란?

  • Git 저장소 = 파일과 하위 디렉터리를 포함하는 디렉터리

두 파일 funding과 report가 주석 처리된 Git 저장소 이미지, data라고 주석 처리된 디렉터리, 그리고 dot-git이라고 주석 처리된 다른 디렉터리

Git 입문

Git 저장소란?

  • Git 저장소 = 파일과 하위 디렉터리를 포함하는 디렉터리, 그리고 Git 스토리지

funding 및 report라는 두 파일과 data라는 디렉터리, dot-git이라는 다른 디렉터리가 주석 처리된 Git 저장소 이미지

.git는 수정하지 마세요!

Git 입문

저장소의 이점

  • 버전을 체계적으로 추적
  • 이전 버전 복구
  • 시점별 버전 비교
  • 동료와 협업

동료들의 브레인스토밍

Git 입문

새 저장소 만들기

git init mental-health-workspace
cd mental-health-workspace
git status
On branch main

No commits yet

nothing to commit (create/copy files and use "git add" to track)
Git 입문

프로젝트를 저장소로 변환하기

  • 기존 디렉터리를 Git 저장소로 변환
git init
Initialized empty Git repository in /home/repl/mental-health-workspace/.git/
Git 입문

무엇이 추적되나요?

git status
On branch main

No commits yet

Untracked files:
    (use "git add <file>..." to include what will be committed)

        data/
        report.md

nothing added to commit but untracked files present (use "git add" to track)

*Git은 추적되지 않은 수정된 파일이 있음을 인식합니다!

Git 입문

중첩 저장소

  • 다른 Git 저장소 안에 Git 저장소를 만들지 마세요
    • 이를 중첩 저장소라고 합니다
  • .git 디렉터리가 2개 있습니다

  • 어느 .git 디렉터리를 업데이트해야 할까요?

Confused_dog

Git 입문

연습해 봅시다!

Git 입문

Preparing Video For Download...