GITHUB와 함께So So하고 Social하게 코딩하기
차영호 ([email protected])
발표자 소개
이 문서는...
http://goo.gl/nSv7kc
Social NetworkSocial Coding?
오늘 Github에서는...● Social Network???
○ https://github.com/google○ https://github.com/facebook○ https://github.com/twitter○ https://github.com/kakao
● 그 외 잘나가는 프로젝트들은...○ https://github.com/explore
Issue Tracker● https://github.com/frabcus/house
Social Coding
User's Computer
VCS Server
VCS workflow
Repository
Repository Repository
Workspace
User's Computergithub
GITHUB workflow
Repository
Repository Repository
Workspace
도구
● git● egit● github (Windows, Mac)● SourceTree● Microsoft Visual Studio
User's Computergithub
fork
Repository
Repository Repository
Workspace
fork
User's Computergithub
clone
Repository
Repository Repository
Workspace
clone
clone
clone
branch/checkout
User's Computergithub
commit
Repository
Repository Repository
Workspace
status & add
Staging
https://www.atlassian.com/git/tutorial/git-basics#!add
commit
show
User's Computergithub
push
Repository
Repository Repository
Workspace
push
push
push
push
User's Computergithub
pull request
Repository
Repository Repository
Workspace
pull request
pull request
pull request
pull request
pull request
Review???
rebase/merge
commit A
commit C
commit B
master
commit A
commit X
commit B
copyright
commit D
merge
commit A
commit B
master
commit A
commit B
copyright
commit C commit X
commit A
commit B
master
commit Mcommit D
Conflict
mergetool
rebase
commit A
commit B
master
commit A
commit B
copyright
commit X
commit A
commit B
master
commit C
commit X`
commit C
commit D
commit D
● 18 페이지로 가세요
부록: branch? tag?● homework!!!!● git branch 배우기 (한글)● git revisions 문서도 유심히 보세요 (영문)
Reference● progit
○ progit 한국어○ progit 한국어 번역 페이지
● github help
끝
It's coding time● https://github.com/GDGKoreaWomen/gdg_codelab_1404
○ http://goo.gl/tOVnyn● 선수분들은 여기에 입장하세요
○ http://goo.gl/Fvru0U● 혹시나 피보나치 수열을 모르는 분이 있다면...
수행 방법● 이슈를 만드세요.
○ 코딩할 줄 모르신다고요?■ 그럼 방법을 알려달라고 이슈를 올리세요.
● 이슈를 분석하세요.● 해결하는 방법을 만드세요● 해결한 변경사항을 자신의 github 저장소에 올리세요● pull request를 보내세요.
○ pull request가 받아들여지지 않으면, 해결방법을 개선해서 다시 시도하세요
● pull request가 받아들여지면 이슈를 닫으세요● ????● PROFIT!
코딩 배틀 규칙● 이슈 등록 2점
○ duplicate/invalid 에 해당하면 무효○ wontfix 에 해당하면 1점으로 처리○ 그 외에 해결된 것을 확인하고 닫으면 2점 추가
● 이슈에 의견 등록 1점● pull request 2점
○ 간택되는 pull request에는 3점 추가● Social 점수 규칙
○ 점수 증여○ 트롤링 감점???○ 가산점
git commit
commit A
commit C
commit B
master
HEAD
HEAD
수정한 부분 되돌리기● git revert● git reset● git checkout● git stash
git revert
commit A
commit C
commit B
commit D
master
HEAD
HEAD
git reset
commit A
commit B
master
commit CHEAD
HEAD
git checkout
commit A
commit C
commit B
master
HEAD
HEAD
commit B
git stash
commit A
commit B
master
commit C
HEADstash 1
HEAD
commit DHEAD