SlideShare ist ein Scribd-Unternehmen logo
1 von 11
GIT 들여다보기(1)
발표자 김병수
-GIT 기본 명령어 소개
[저장소 파일 상태 확인까지]
목 차
1. 왜 Git가 필요한가?
2. Git의 기본 명령어 보기
1) Git 버전 확인
2) Git 사용자 설정 변경 및 확인
3) Git 도움말
4) Git 저장소 만들기
5) Git 저장소에 파일 상태 확인
1. 왜 Git가 필요한가?
Git -> version control
system
Github -> code sharing and
collaboration platform
2. Git의 기본 명령어
1) Git 버전 확인
설치 되어있지 않다면, http://git-scm.com
에서 Git 다운로드 후 설치
2. Git의 기본 명령어
2) Git 사용자 설정 변경 및 확인
2. Git의 기본 명령어
3) Git 도움말
2. Git의 기본 명령어
4) Git 저장소 만들기
2. Git의 기본 명령어
4) Git 저장소 만들기
.Git라는 디렉토리가 생성
-> 앞으로 이루어지는 작업들이 모두 .Git
디렉토리에 저장
2. Git의 기본 명령어
4) Git 저장소에 파일 상태 확인
현재 Git 저장소에 Tracked하는 파일들의 상태를
출력
-> 파일 상태를 확인하여 modified[수정후]된
파일인지 new file인지 알 수 있다.
다음주 주제 : GIT 들여다보기(2)
-GIT 기본 명령어 소개
[저장소 파일 추적 부터]
감사합니다

Weitere ähnliche Inhalte

Andere mochten auch

BRAF mand CDKN2A deletion define a clinically distinct subgroup of childhood ...
BRAF mand CDKN2A deletion define a clinically distinct subgroup of childhood ...BRAF mand CDKN2A deletion define a clinically distinct subgroup of childhood ...
BRAF mand CDKN2A deletion define a clinically distinct subgroup of childhood ...Joshua Mangerel
 
Sms-Voting and Elections
Sms-Voting and ElectionsSms-Voting and Elections
Sms-Voting and ElectionsSergeClause
 
JVM Language Summit: Object layout presentation
JVM Language Summit: Object layout presentationJVM Language Summit: Object layout presentation
JVM Language Summit: Object layout presentationAzul Systems, Inc.
 
My daily routine
My daily routineMy daily routine
My daily routinenorapuig
 
KCPOS - How To Choose An EPOS System
KCPOS - How To Choose An EPOS SystemKCPOS - How To Choose An EPOS System
KCPOS - How To Choose An EPOS SystemRichard Wellham
 

Andere mochten auch (7)

О себе
О себеО себе
О себе
 
BRAF mand CDKN2A deletion define a clinically distinct subgroup of childhood ...
BRAF mand CDKN2A deletion define a clinically distinct subgroup of childhood ...BRAF mand CDKN2A deletion define a clinically distinct subgroup of childhood ...
BRAF mand CDKN2A deletion define a clinically distinct subgroup of childhood ...
 
Sms-Voting and Elections
Sms-Voting and ElectionsSms-Voting and Elections
Sms-Voting and Elections
 
Dimitrios Triantafyllopoulos Master Certificate
Dimitrios Triantafyllopoulos Master CertificateDimitrios Triantafyllopoulos Master Certificate
Dimitrios Triantafyllopoulos Master Certificate
 
JVM Language Summit: Object layout presentation
JVM Language Summit: Object layout presentationJVM Language Summit: Object layout presentation
JVM Language Summit: Object layout presentation
 
My daily routine
My daily routineMy daily routine
My daily routine
 
KCPOS - How To Choose An EPOS System
KCPOS - How To Choose An EPOS SystemKCPOS - How To Choose An EPOS System
KCPOS - How To Choose An EPOS System
 

Mehr von Kim Byoungsu

Android tech note(beginner)[lesson 1]
Android tech note(beginner)[lesson 1]Android tech note(beginner)[lesson 1]
Android tech note(beginner)[lesson 1]Kim Byoungsu
 
Open course 소개
Open course 소개Open course 소개
Open course 소개Kim Byoungsu
 
Git로 협업하기
Git로 협업하기Git로 협업하기
Git로 협업하기Kim Byoungsu
 
Git란 무엇인가?
Git란 무엇인가?Git란 무엇인가?
Git란 무엇인가?Kim Byoungsu
 

Mehr von Kim Byoungsu (7)

Android tech note(beginner)[lesson 1]
Android tech note(beginner)[lesson 1]Android tech note(beginner)[lesson 1]
Android tech note(beginner)[lesson 1]
 
Open course 소개
Open course 소개Open course 소개
Open course 소개
 
Git Branch
Git BranchGit Branch
Git Branch
 
Git로 협업하기
Git로 협업하기Git로 협업하기
Git로 협업하기
 
Git의 기초(3)
Git의 기초(3)Git의 기초(3)
Git의 기초(3)
 
Git의 기초
Git의 기초Git의 기초
Git의 기초
 
Git란 무엇인가?
Git란 무엇인가?Git란 무엇인가?
Git란 무엇인가?
 

Git 들여다보기(1)

  • 1. GIT 들여다보기(1) 발표자 김병수 -GIT 기본 명령어 소개 [저장소 파일 상태 확인까지]
  • 2. 목 차 1. 왜 Git가 필요한가? 2. Git의 기본 명령어 보기 1) Git 버전 확인 2) Git 사용자 설정 변경 및 확인 3) Git 도움말 4) Git 저장소 만들기 5) Git 저장소에 파일 상태 확인
  • 3. 1. 왜 Git가 필요한가? Git -> version control system Github -> code sharing and collaboration platform
  • 4. 2. Git의 기본 명령어 1) Git 버전 확인 설치 되어있지 않다면, http://git-scm.com 에서 Git 다운로드 후 설치
  • 5. 2. Git의 기본 명령어 2) Git 사용자 설정 변경 및 확인
  • 6. 2. Git의 기본 명령어 3) Git 도움말
  • 7. 2. Git의 기본 명령어 4) Git 저장소 만들기
  • 8. 2. Git의 기본 명령어 4) Git 저장소 만들기 .Git라는 디렉토리가 생성 -> 앞으로 이루어지는 작업들이 모두 .Git 디렉토리에 저장
  • 9. 2. Git의 기본 명령어 4) Git 저장소에 파일 상태 확인 현재 Git 저장소에 Tracked하는 파일들의 상태를 출력 -> 파일 상태를 확인하여 modified[수정후]된 파일인지 new file인지 알 수 있다.
  • 10. 다음주 주제 : GIT 들여다보기(2) -GIT 기본 명령어 소개 [저장소 파일 추적 부터]

Hinweis der Redaktion

  1. Git는 파일의 상태라는 것이 있다. 이부분이 중요하니 꼭 알아두고 가셔야 됩니다. 위의 그림을 참고 하면서 읽으면 편하실 겁니다.   워킹 디렉터리(프로젝트 파일)의 모든파일을 가장 크게 분류하면 Tracked(관리대상)과 Untracked(비관리대상)으로 나눌 수 있습니다. Untracked(비관리대상)은 추적을 하지 않는 상태입니다. 간단하게 생각하면 관리대상의 수정에만 신경 쓰지 비관리대상 파일은 수정이 되건 말건 내알바 아니다 라고 신경도 안쓰는 겁니다. 만약 중요한 main.c라는 코드 파일파일이 있으면 둘중 어디에 넣어야 될까요? 당연히 Tracked(관리대상)입니다. Untracked냐 tracked냐는 명령어를 입력하여 변경할 수 있습니다. Tracked(관리대상)를 세분화 하면 Unmodified(수정전), Modified(수정후), Staged(저장)상태가 있습니다.  Unmodified(수정전)는 아무것도 수정된 것이 없는 상태입니다. Modified(수정후)는 main.c파일에 코드를 추가 하고 저장하게 되면 이 상태가 됩니다. (명령어 필요없이 관리대상을 추적하고 있다가 파일이 수정되면 자동으로 상태가 변경된다.) Staged(저장)는 명령어를 눌러 commit를 하면 저장소에 저장이 됩니다. 저장소에 저장이 되야지 나중에 버전을 찾아 복원하는데 사용할 수 있도록 해줍니다.  저장이 했으니 아무것도 수정된 것이 없는 상태 이니까 다시 Unmodified(수정전)상태로 돌아가게 됩니다. 추적을 해제할 때 까지 사용자가 파일을 건드릴 때 마다 반복이 됩니다.  [출처] [Git] GIT기본명령어-2|작성자 fundoong