제로부터
시작하는
Git
Neuromancerr
Mario Cho(조만석)
hephaex@gmail.com
Mario Cho
Development Experience
◆ Image Recognition using Neural Network
◆ Bio-Medical Data Processing
◆ Human Brain Mapping on High Performance
Computing
◆ Medical Image Reconstruction
(Computer Tomography)
◆ Enterprise System
◆ Open Source Software Developer
◆ OPNFV (NFV&SDN) & OpenStack
◆ Machine Learning (TensorFlow, Torch, Leaf)
Cognitive Artificial Intelligence for Medicine
◆ Machine Learning
◆ Medical Informatics of oncology
Book
◆ Unix V6 Kernel
Mario Cho
hephaex@gmail.com
Contents
Git 이란?
왜 Git을 ?
Github 계정을 만들어보자!
Git 실습
Basic
Git 이해하기
Git 실습
Advanced
OpenSoruce
활동
K&R (Ken Tompson & Dennis Richie)
Lions Commentary on UNIX V6
Open Source OS From Unix V6 To Linux
Linux
Unix V6
리눅스 커널
운영체계
- Apple Mac OS system 1.x : 1984.x
- MS Windows 1.x : 1985.x
- Linux : 1991. 8.26
• unix is an operating system
– There are many different types of unix.
– But they all came from a common background.
• The Internet was built on UNIX.
– TCP/IP is a native UNIX protocol.
– Today 80% of the worlds Internet Web servers are using Linux.
• unix has commonly been used for the past 30 years.
– It was created in 1969 - long before Microsoft existed.
– It was the 1st worldwide commercial operating system.
• Unix has always commonly been used on mainframes.
• Today as “linux” it is also commonly being used on PC’s as servers & desktops
공개 SW 포털 (http://www.oss.kr)
오픈 소스 저장소: https://github.com
Git 이란
• git == 무엇이 바뀌었는지를 기록하는 도구
파일 이름으로 버전 관리
• 파일 이름으로 Ctrl+C, Ctrl+V
과제 1_최종_2017_07_03.doc
과제 1_진짜최종_2017_07_04.doc
과제 1_진짜최종_final_2017_07_05.doc
파일 이름으로 버전 관리
• 파일 이름으로 Ctrl+C, Ctrl+V
과제 1_최종_2017_07_03.doc
과제 1_진짜최종_2017_07_05.doc
과제 1_진짜최종_final_2017_07_05.doc
1.과 2.는 무엇을
바뀌었는지 파일
이름만 가지고는
알기 어렵다!
내용이 바뀔때마다
용량은 x2 + diff.
x3 + diff.
형상관리 (svn, git) 버전 관리
• SVN , git 등 형상관리 도구로 관리
과제 1_최종_2017_07_03.doc
과제 1_진짜최종_2017_07_05.doc
과제 1_진짜최종_final_2017_07_05.doc
1.과 2.는 무엇을
바뀌었는지 파일
이름만 가지고는
알기 어렵다!
내용이 바뀔때마다
용량은 x2 + diff.
x3 + diff.
1.과 2.로 바뀔때
차이나는 부분과 내용(log)를 함께저장
2.과 3.로 바뀔때
차이나는 부분과 내용(log)를 함께저장
형상관리 (svn, git) 버전 관리
• SVN , git 등 형상관리 도구로 관리
과제 1_최종_2017_07_03.doc
과제 1_진짜최종_2017_07_05.doc
과제 1_진짜최종_final_2017_07_05.doc
1.과 2.는 무엇을
바뀌었는지 파일
이름만 가지고는
알기 어렵다!
내용이 바뀔때마다
용량은 x2 + diff.
x3 + diff.
1.과 2.로 바뀔때
차이나는 부분과 내용(log)를 함께저장
3.에서 2.로
안전한 상태로 과거 상태로 그대로
돌려 놓을 수 있다.
형상관리 (svn, git) 버전 관리
• SVN , git 등 형상관리 도구로 관리
과제 1_최종_2017_07_03.doc
과제 1_진짜최종_2017_07_05.doc
과제 1_진짜최종_final_2017_07_05.doc
1.과 2.는 무엇을
바뀌었는지 파일
이름만 가지고는
알기 어렵다!
내용이 바뀔때마다
용량은 x2 + diff.
x3 + diff.
1.과 2.로 바뀔때
차이나는 부분과 내용(log)를 함께저장
3.에서 2.로
안전한 상태로 과거 상태로 그대로
돌려 놓을 수 있다.
특정 시점(release) 시점으로 tag로 해서
관리할 수 있다.
형상관리 (svn, git) 버전 관리
• SVN , git 등 형상관리 도구로 관리
과제 1_최종_2017_07_03.doc
과제 1_진짜최종_2017_07_05.doc
과제 1_진짜최종_final_2017_07_05.doc
특정 시점(release) 시점으로 tag로 해서
관리할 수 있다.
Git을 꼭!!!
배워야하나?
Code 한줄이라도!
Git이 좋다고 하는데!
과제라 꼭 해야만…
github 실습
1. Git 환경
-> 가상화 환경으로 리눅스 설치
2. Github 회원 가입
3. git 실습 (basic)
-> https://www.github.com
-> 리눅스 터미널 환경(cli) 실습
I. Setup Virtual Environment
• Virtual Box 5.1 Download & install.
• https://www.virtualbox.org
I. Setup Virtual Environment
• VirtualBox 5.1.22 for Windows hosts x86/amd64
• VirtualBox 5.1.22 for OS X hosts amd64
II. Operating System: download
• http://releases.ubuntu.com/
• http://releases.ubuntu.com/xenial/
II. Operating System: download
• https://launchpad.net/ubuntu/+mirror/ftp.daum.net-release
II. Operating System: virtual box setup
II. Operating System: virtual box setup
II. Operating System: virtual box setup
II. Operating System: virtual box setup
II. Operating System: virtual box setup
II. Operating System: virtual box setup
II. Operating System: virtual box setup
강의자료
• https://www.slideshare.net/hephaex
II. Operating System: virtual box setup
II. Operating System: ready to install
II. Operating System: install
II. Operating System: install
II. Operating System: install
제로부터시작하는Git
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
II. Operating System: install
제로부터시작하는Git
II. Operating System: install
II. Operating System: install
II. Operating System: install
III. Setting Network
• $ sudo vi /etc/network/interfaces
– 네트워크 장치 정보를 입력하고 CTRL+X로 저장
– 왼쪽 H, 아래 J 위 k 오른쪽 L
– 맨 끝에서 a를 누르고 편집 모드로 들어가서 입력
• 입력이 끝났다면 ESC 를 누르고 :wq!
• sudo reboot
III. SSH server install
• 설치를 안했을 경우 새로 설치
• $ sudo apt-get install openssh-server
• 검증 verify
• $ sudo service ssh status
III. install local terminal
• http://www.putty.org 에 접속해서
III. install local terminal
• http://www.putty.org 에 접속해서
III. install local terminal
III. install local terminal
III. install local terminal
III. Open local terminal using putty or term
• Windows 환경: putty 를 설치하고, 창을 열어 192.168.56.10 으로 접속합니다.
• OSX 환경: 터미널을 열어 $ ssh 192.168.56.10 –l ubuntu 로 접속합니다.
III. Repository update
• $ sudo apt-get update && sudo apt-get dist-upgrade
IV. Install git
• $ apt-get install git
• $ wget -qO- https://get.docker.com/ | sh
• $ sudo usermod -aG docker ubuntu
• 로그 아웃한 뒤 재 접속.
github 실습
1. Git 환경
-> 가상화 환경으로 리눅스 설치
2. Github 회원 가입
3. git 실습 (basic)
-> https://www.github.com
-> 리눅스 터미널 환경(cli) 실습
git 실습: github 회원가입
git 실습: github 회원가입
git 실습: github 회원가입
• 웹브라우저를 열고 (익스플로러, 크롬, 파이어폭스, 사파리등)
• https://github.com 에 접속
git 실습: github 회원가입
• Sign up 을 클릭
• Step1:사용자이름, 이메일, 접속 암호를 입력후 create an
account
git 실습: github 회원가입
• Step2: Choose your plan
• Unlimited public repositories for free 선택후 Continue
git 실습: github 회원가입
• Step3: Tailor your experience
• Submit 하거나 skip this step
git 실습: github 회원가입
• Final step: 이메일 확인
• Verify email address 클릭하거나 링크를 붙여 놓고, 열기
git 실습: github 회원가입
• 이제부터 나도 Github 회원!
git 실습: github 회원가입
• github에 새로운 저장소도 만들 수 있지!
github 실습
1. Git 환경
-> 가상화 환경으로 리눅스 설치
2. Github 회원 가입
3. git 실습 (basic)
-> https://www.github.com
-> 리눅스 터미널 환경(cli) 실습
git 실습:
• https://docs.google.com/spreadsheets/d/1gU9WgFIb5LxTVrF
XWi4gPdsEI-uXHy4jvYhW7JXaGDI/edit?usp=sharing
Git 실습: 기본 명령어
# git add report_card.pdf
# git config –global use.name “xxx”
# git commit -s
git 실습: github 계정 설정
• 1) 다른 putty 를 열어서 192.168.56.10 에 접속
• 2) 나의 github 계정, 이메일과 이름 입력
• git config --global user.email xxx@gmail.com
• git config --global user.name ”XXX”
• Git 계정에서 만들었던 저장소를 로컬로 불러서 저장하기.
• git clone https://github.com/hephaex/git-ex.git
git 실습: github 계정 설정
• 1) 다른 putty 를 열어서 192.168.56.10 에 접속
• 2) 나의 github 계정, 이메일과 이름 입력
• git config --global user.email xxx@gmail.com
• git config --global user.name ”XXX”
• Git 계정에서 만들었던 저장소를 로컬로 불러서 저장하기.
• git clone https://github.com/hephaex/git-ex.git
git 실습:
• # cd ~
• Git-ex 폴더를 만들자.
• $ mkdir git-ex
• $ cd git-ex
• 해당 폴더를 git 초기화
• $ git init
git 실습:
• 파일을 만들어 보자.
• touch git-ex1.txt
• 만들 파일을 git에 추가하자.
• $ git add git-ex1.txt
• 첫 커밋 하기
• $ git commit –m “first git commit”
git 실습:
• 파일을 만들어 보자.
• touch git-ex2.txt
• 만들 파일을 git에 추가하자.
• $ git add git-ex2.txt
• 두번째 커밋 하기
• $ git commit –m “second git commit”
git 실습:
• 파일을 수정해 보자.
• vi git-ex2.txt
• i를 누르고
• Hello world 라고 입력
• ESC 를 누르고 :wq! git-ex2.txt 로저장
• 만든 파일을 git에 추가하자.
git 실습:
• 상태를 확인한다.
• $ git status
• Ex2 와 ex3를 비교해보자.
• $ git diff
• Diff 의 차이를 확인 했으면 add 실행
• $ git add git-ex2.txt
• 바뀌 파일을 commit 한다.
• $ git commit –m “3th commit: file changed”
• 지금까지 git 를 확인 하자
• $ git log
git 실습:
• 복사한 URL을 git 원격 저장소로 등록하자.
• $ git remote add origin <….>
• 원격 저장소에 푸쉬 push 하자
• $ git push origin master
• Github.com 웹을 열어 확인하자 <step4>
git 실습:
• 복사한 URL을 git 원격 저장소로 등록하자.
• $ git remote add origin <….>
• 원격 저장소에 푸쉬 push 하자
• $ git push origin master
• Github.com 웹을 열어 확인하자 <step4>
Thanks you!
Q&A

More Related Content

PDF
제로부터시작하는 Git 두번째 이야기
PPTX
PDF
버전관리를 들어본적 없는 사람들을 위한 DVCS - Git
PDF
Git 더하기 GitHub(구름IDE 환경)
PDF
Git 입문자를 위한 가이드
PDF
버전관리시스템 종류와 소개
PPTX
Git 사용 가이드
PDF
Git - Level 2
제로부터시작하는 Git 두번째 이야기
버전관리를 들어본적 없는 사람들을 위한 DVCS - Git
Git 더하기 GitHub(구름IDE 환경)
Git 입문자를 위한 가이드
버전관리시스템 종류와 소개
Git 사용 가이드
Git - Level 2

What's hot (20)

PDF
[NDC16] Effective Git
PPTX
git, git flow
 
PDF
Git branch stregagy & case study
PDF
Github 사용법
PDF
Git Tutorial
PDF
Git 더하기 GitHub(Git클라이언트 활용) / Getting started with git+github
PPTX
Git의 개념과 사용
PDF
Git 강별
PDF
GitHub 실습 교육
PDF
Git & Github Seminar-1
PDF
svn 능력자를 위한 git 개념 가이드
PPTX
오픈소스 공헌을 위한 필수 지식
PDF
Git 사용법 공유 + Unity3D with git
PDF
git-basic-commands
PDF
11. git basic
PDF
Git이란 (Git 소개 및 기초 이론)
PDF
Git tutorials
PDF
제로부터시작하는오픈소스
PPTX
Advanced git
PDF
140109 팀프로젝트 협업툴
[NDC16] Effective Git
git, git flow
 
Git branch stregagy & case study
Github 사용법
Git Tutorial
Git 더하기 GitHub(Git클라이언트 활용) / Getting started with git+github
Git의 개념과 사용
Git 강별
GitHub 실습 교육
Git & Github Seminar-1
svn 능력자를 위한 git 개념 가이드
오픈소스 공헌을 위한 필수 지식
Git 사용법 공유 + Unity3D with git
git-basic-commands
11. git basic
Git이란 (Git 소개 및 기초 이론)
Git tutorials
제로부터시작하는오픈소스
Advanced git
140109 팀프로젝트 협업툴
Ad

Similar to 제로부터시작하는Git (20)

PPTX
리스펙토링 세미나 - Git, Github 알아보기
PPTX
Git lecture1
PPTX
Github? linux? 이건 뭐지?
PDF
[201808] GitHub 사용하기 - GIt & 협업 활용
PDF
[NEXT 프연 Week1] Git 시작하기
PDF
Why use git
PPTX
오픈소스GIS 개발 일반 강의자료
PPTX
내 맘대로 이해한 오픈소스 소프트웨어
PPT
Git from google techtalks by Randal
PDF
200720 바이오협회 생물정보학 파이썬 강의
PPTX
디자이너를위한Git #1/2
PDF
알아두면 쓸모있는 깃허브 1
PDF
소스트리(SourceTree)로 배우는 Git 사용법
PDF
깃허브 시작하기
PPTX
리스펙토링 5월 세미나, git과 github
PPTX
PDF
201017 한주현 생물정보학 github 강의
PDF
KhuHub student guideline
PDF
XECon2015 :: [1-3] 김덕홍 - Git Workflow with GitHub
PDF
Git 기본개념과 사용법 그리고 어플리케이션
리스펙토링 세미나 - Git, Github 알아보기
Git lecture1
Github? linux? 이건 뭐지?
[201808] GitHub 사용하기 - GIt & 협업 활용
[NEXT 프연 Week1] Git 시작하기
Why use git
오픈소스GIS 개발 일반 강의자료
내 맘대로 이해한 오픈소스 소프트웨어
Git from google techtalks by Randal
200720 바이오협회 생물정보학 파이썬 강의
디자이너를위한Git #1/2
알아두면 쓸모있는 깃허브 1
소스트리(SourceTree)로 배우는 Git 사용법
깃허브 시작하기
리스펙토링 5월 세미나, git과 github
201017 한주현 생물정보학 github 강의
KhuHub student guideline
XECon2015 :: [1-3] 김덕홍 - Git Workflow with GitHub
Git 기본개념과 사용법 그리고 어플리케이션
Ad

More from Mario Cho (20)

PDF
Python pyenv virtualenv
PDF
Open source ai_technical_trend
PDF
A.I. Exercise.
PDF
오픈소스로 시작하는 인공지능 실습
PDF
Koss Lab 세미나 오픈소스 인공지능(AI) 프레임웍파헤치기
PDF
Deep machine learning by Mario Cho
PDF
Introduce Deep learning & A.I. Applications
PDF
Re: 제로부터시작하는텐서플로우
PDF
Koss 6 a17_deepmachinelearning_mariocho_r10
PDF
Open stack 4day
PDF
티벳 사자의 서: 환생론/우주관
PDF
EMT machine learning 12th weeks : Anomaly detection
PDF
ESM Machine learning 5주차 Review by Mario Cho
PDF
ESM Mid term Review
PDF
ESM SVM & Unsupervised Learning
PDF
Tfk 6618 tensor_flow로얼굴인식구현_r10_mariocho
PDF
Koss 1605 machine_learning_mariocho_t10
PDF
Storage based on_openstack_mariocho
PDF
An Introduce of OPNFV (Open Platform for NFV)
PDF
Linux Kernel Boot Process , SOSCON 2015, By Mario Cho
Python pyenv virtualenv
Open source ai_technical_trend
A.I. Exercise.
오픈소스로 시작하는 인공지능 실습
Koss Lab 세미나 오픈소스 인공지능(AI) 프레임웍파헤치기
Deep machine learning by Mario Cho
Introduce Deep learning & A.I. Applications
Re: 제로부터시작하는텐서플로우
Koss 6 a17_deepmachinelearning_mariocho_r10
Open stack 4day
티벳 사자의 서: 환생론/우주관
EMT machine learning 12th weeks : Anomaly detection
ESM Machine learning 5주차 Review by Mario Cho
ESM Mid term Review
ESM SVM & Unsupervised Learning
Tfk 6618 tensor_flow로얼굴인식구현_r10_mariocho
Koss 1605 machine_learning_mariocho_t10
Storage based on_openstack_mariocho
An Introduce of OPNFV (Open Platform for NFV)
Linux Kernel Boot Process , SOSCON 2015, By Mario Cho

제로부터시작하는Git

  • 2. Mario Cho Development Experience ◆ Image Recognition using Neural Network ◆ Bio-Medical Data Processing ◆ Human Brain Mapping on High Performance Computing ◆ Medical Image Reconstruction (Computer Tomography) ◆ Enterprise System ◆ Open Source Software Developer ◆ OPNFV (NFV&SDN) & OpenStack ◆ Machine Learning (TensorFlow, Torch, Leaf) Cognitive Artificial Intelligence for Medicine ◆ Machine Learning ◆ Medical Informatics of oncology Book ◆ Unix V6 Kernel Mario Cho [email protected]
  • 3. Contents Git 이란? 왜 Git을 ? Github 계정을 만들어보자! Git 실습 Basic Git 이해하기 Git 실습 Advanced OpenSoruce 활동
  • 4. K&R (Ken Tompson & Dennis Richie)
  • 6. Open Source OS From Unix V6 To Linux Linux Unix V6
  • 7. 리눅스 커널 운영체계 - Apple Mac OS system 1.x : 1984.x - MS Windows 1.x : 1985.x - Linux : 1991. 8.26
  • 8. • unix is an operating system – There are many different types of unix. – But they all came from a common background. • The Internet was built on UNIX. – TCP/IP is a native UNIX protocol. – Today 80% of the worlds Internet Web servers are using Linux. • unix has commonly been used for the past 30 years. – It was created in 1969 - long before Microsoft existed. – It was the 1st worldwide commercial operating system. • Unix has always commonly been used on mainframes. • Today as “linux” it is also commonly being used on PC’s as servers & desktops
  • 9. 공개 SW 포털 (http://www.oss.kr)
  • 10. 오픈 소스 저장소: https://github.com
  • 11. Git 이란 • git == 무엇이 바뀌었는지를 기록하는 도구
  • 12. 파일 이름으로 버전 관리 • 파일 이름으로 Ctrl+C, Ctrl+V 과제 1_최종_2017_07_03.doc 과제 1_진짜최종_2017_07_04.doc 과제 1_진짜최종_final_2017_07_05.doc
  • 13. 파일 이름으로 버전 관리 • 파일 이름으로 Ctrl+C, Ctrl+V 과제 1_최종_2017_07_03.doc 과제 1_진짜최종_2017_07_05.doc 과제 1_진짜최종_final_2017_07_05.doc 1.과 2.는 무엇을 바뀌었는지 파일 이름만 가지고는 알기 어렵다! 내용이 바뀔때마다 용량은 x2 + diff. x3 + diff.
  • 14. 형상관리 (svn, git) 버전 관리 • SVN , git 등 형상관리 도구로 관리 과제 1_최종_2017_07_03.doc 과제 1_진짜최종_2017_07_05.doc 과제 1_진짜최종_final_2017_07_05.doc 1.과 2.는 무엇을 바뀌었는지 파일 이름만 가지고는 알기 어렵다! 내용이 바뀔때마다 용량은 x2 + diff. x3 + diff. 1.과 2.로 바뀔때 차이나는 부분과 내용(log)를 함께저장 2.과 3.로 바뀔때 차이나는 부분과 내용(log)를 함께저장
  • 15. 형상관리 (svn, git) 버전 관리 • SVN , git 등 형상관리 도구로 관리 과제 1_최종_2017_07_03.doc 과제 1_진짜최종_2017_07_05.doc 과제 1_진짜최종_final_2017_07_05.doc 1.과 2.는 무엇을 바뀌었는지 파일 이름만 가지고는 알기 어렵다! 내용이 바뀔때마다 용량은 x2 + diff. x3 + diff. 1.과 2.로 바뀔때 차이나는 부분과 내용(log)를 함께저장 3.에서 2.로 안전한 상태로 과거 상태로 그대로 돌려 놓을 수 있다.
  • 16. 형상관리 (svn, git) 버전 관리 • SVN , git 등 형상관리 도구로 관리 과제 1_최종_2017_07_03.doc 과제 1_진짜최종_2017_07_05.doc 과제 1_진짜최종_final_2017_07_05.doc 1.과 2.는 무엇을 바뀌었는지 파일 이름만 가지고는 알기 어렵다! 내용이 바뀔때마다 용량은 x2 + diff. x3 + diff. 1.과 2.로 바뀔때 차이나는 부분과 내용(log)를 함께저장 3.에서 2.로 안전한 상태로 과거 상태로 그대로 돌려 놓을 수 있다. 특정 시점(release) 시점으로 tag로 해서 관리할 수 있다.
  • 17. 형상관리 (svn, git) 버전 관리 • SVN , git 등 형상관리 도구로 관리 과제 1_최종_2017_07_03.doc 과제 1_진짜최종_2017_07_05.doc 과제 1_진짜최종_final_2017_07_05.doc 특정 시점(release) 시점으로 tag로 해서 관리할 수 있다. Git을 꼭!!! 배워야하나? Code 한줄이라도! Git이 좋다고 하는데! 과제라 꼭 해야만…
  • 18. github 실습 1. Git 환경 -> 가상화 환경으로 리눅스 설치 2. Github 회원 가입 3. git 실습 (basic) -> https://www.github.com -> 리눅스 터미널 환경(cli) 실습
  • 19. I. Setup Virtual Environment • Virtual Box 5.1 Download & install. • https://www.virtualbox.org
  • 20. I. Setup Virtual Environment • VirtualBox 5.1.22 for Windows hosts x86/amd64 • VirtualBox 5.1.22 for OS X hosts amd64
  • 21. II. Operating System: download • http://releases.ubuntu.com/ • http://releases.ubuntu.com/xenial/
  • 22. II. Operating System: download • https://launchpad.net/ubuntu/+mirror/ftp.daum.net-release
  • 23. II. Operating System: virtual box setup
  • 24. II. Operating System: virtual box setup
  • 25. II. Operating System: virtual box setup
  • 26. II. Operating System: virtual box setup
  • 27. II. Operating System: virtual box setup
  • 28. II. Operating System: virtual box setup
  • 29. II. Operating System: virtual box setup
  • 31. II. Operating System: virtual box setup
  • 32. II. Operating System: ready to install
  • 57. III. Setting Network • $ sudo vi /etc/network/interfaces – 네트워크 장치 정보를 입력하고 CTRL+X로 저장 – 왼쪽 H, 아래 J 위 k 오른쪽 L – 맨 끝에서 a를 누르고 편집 모드로 들어가서 입력 • 입력이 끝났다면 ESC 를 누르고 :wq! • sudo reboot
  • 58. III. SSH server install • 설치를 안했을 경우 새로 설치 • $ sudo apt-get install openssh-server • 검증 verify • $ sudo service ssh status
  • 59. III. install local terminal • http://www.putty.org 에 접속해서
  • 60. III. install local terminal • http://www.putty.org 에 접속해서
  • 61. III. install local terminal
  • 62. III. install local terminal
  • 63. III. install local terminal
  • 64. III. Open local terminal using putty or term • Windows 환경: putty 를 설치하고, 창을 열어 192.168.56.10 으로 접속합니다. • OSX 환경: 터미널을 열어 $ ssh 192.168.56.10 –l ubuntu 로 접속합니다.
  • 65. III. Repository update • $ sudo apt-get update && sudo apt-get dist-upgrade
  • 66. IV. Install git • $ apt-get install git • $ wget -qO- https://get.docker.com/ | sh • $ sudo usermod -aG docker ubuntu • 로그 아웃한 뒤 재 접속.
  • 67. github 실습 1. Git 환경 -> 가상화 환경으로 리눅스 설치 2. Github 회원 가입 3. git 실습 (basic) -> https://www.github.com -> 리눅스 터미널 환경(cli) 실습
  • 68. git 실습: github 회원가입
  • 69. git 실습: github 회원가입
  • 70. git 실습: github 회원가입 • 웹브라우저를 열고 (익스플로러, 크롬, 파이어폭스, 사파리등) • https://github.com 에 접속
  • 71. git 실습: github 회원가입 • Sign up 을 클릭 • Step1:사용자이름, 이메일, 접속 암호를 입력후 create an account
  • 72. git 실습: github 회원가입 • Step2: Choose your plan • Unlimited public repositories for free 선택후 Continue
  • 73. git 실습: github 회원가입 • Step3: Tailor your experience • Submit 하거나 skip this step
  • 74. git 실습: github 회원가입 • Final step: 이메일 확인 • Verify email address 클릭하거나 링크를 붙여 놓고, 열기
  • 75. git 실습: github 회원가입 • 이제부터 나도 Github 회원!
  • 76. git 실습: github 회원가입 • github에 새로운 저장소도 만들 수 있지!
  • 77. github 실습 1. Git 환경 -> 가상화 환경으로 리눅스 설치 2. Github 회원 가입 3. git 실습 (basic) -> https://www.github.com -> 리눅스 터미널 환경(cli) 실습
  • 79. Git 실습: 기본 명령어 # git add report_card.pdf # git config –global use.name “xxx” # git commit -s
  • 80. git 실습: github 계정 설정 • 1) 다른 putty 를 열어서 192.168.56.10 에 접속 • 2) 나의 github 계정, 이메일과 이름 입력 • git config --global user.email [email protected] • git config --global user.name ”XXX” • Git 계정에서 만들었던 저장소를 로컬로 불러서 저장하기. • git clone https://github.com/hephaex/git-ex.git
  • 81. git 실습: github 계정 설정 • 1) 다른 putty 를 열어서 192.168.56.10 에 접속 • 2) 나의 github 계정, 이메일과 이름 입력 • git config --global user.email [email protected] • git config --global user.name ”XXX” • Git 계정에서 만들었던 저장소를 로컬로 불러서 저장하기. • git clone https://github.com/hephaex/git-ex.git
  • 82. git 실습: • # cd ~ • Git-ex 폴더를 만들자. • $ mkdir git-ex • $ cd git-ex • 해당 폴더를 git 초기화 • $ git init
  • 83. git 실습: • 파일을 만들어 보자. • touch git-ex1.txt • 만들 파일을 git에 추가하자. • $ git add git-ex1.txt • 첫 커밋 하기 • $ git commit –m “first git commit”
  • 84. git 실습: • 파일을 만들어 보자. • touch git-ex2.txt • 만들 파일을 git에 추가하자. • $ git add git-ex2.txt • 두번째 커밋 하기 • $ git commit –m “second git commit”
  • 85. git 실습: • 파일을 수정해 보자. • vi git-ex2.txt • i를 누르고 • Hello world 라고 입력 • ESC 를 누르고 :wq! git-ex2.txt 로저장 • 만든 파일을 git에 추가하자.
  • 86. git 실습: • 상태를 확인한다. • $ git status • Ex2 와 ex3를 비교해보자. • $ git diff • Diff 의 차이를 확인 했으면 add 실행 • $ git add git-ex2.txt • 바뀌 파일을 commit 한다. • $ git commit –m “3th commit: file changed” • 지금까지 git 를 확인 하자 • $ git log
  • 87. git 실습: • 복사한 URL을 git 원격 저장소로 등록하자. • $ git remote add origin <….> • 원격 저장소에 푸쉬 push 하자 • $ git push origin master • Github.com 웹을 열어 확인하자 <step4>
  • 88. git 실습: • 복사한 URL을 git 원격 저장소로 등록하자. • $ git remote add origin <….> • 원격 저장소에 푸쉬 push 하자 • $ git push origin master • Github.com 웹을 열어 확인하자 <step4>