際際滷
Submit Search
[NDC16] Effective Git
518 likes
29,094 views
Chanwoong Kim
NDC 2016 Effective Git ?? ?? ???.
Software
Read more
1 of 180
Download now
Downloaded 431 times
1
2
3
4
5
6
7
8
9
Most read
10
Most read
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
More Related Content
What's hot
(20)
PDF
テ?サ?イナのための赫庄岳秘壇
dsuke Takaoka
?
PDF
Git and git flow
Fran Garc┴a
?
PPTX
Git in 10 minutes
Safique Ahmed Faruque
?
PDF
Github - Git Training 際際滷s: Foundations
Lee Hanxue
?
PDF
Git flow
DaeMyung Kang
?
PDF
‐Unite 2017 Tokyo/仝\T平と易の徴藍々にみるC#でy匯したサ`バ`/クライアント_kとFg議なUniRx聞いこなしg
Unity Technologies Japan K.K.
?
PPTX
CI/CD with GitHub Actions
Swaminathan Vetri
?
PPTX
CICD Pipeline Using Github Actions
Kumar Sh━vam
?
PPTX
??? ????? Jenkins ?????
?? ?
?
PDF
はじめての赫庄岳 韓看姻デザイナ`Ε芥`ダ`
Saeko Yamamoto
?
PDF
Les bases de git
Pierre Sudron
?
PDF
Advanced Git
Sergiu-Ioan Ungur
?
PDF
Git and github 101
Senthilkumar Gopal
?
PDF
LetSwift 2017 - ?? iOS ?? ??/?? ??
Mintak Son
?
PDF
svn ???? ?? git ?? ???
Insub Lee
?
PDF
???, unity build? ???? ?????, NDC2010
devCAT Studio, NEXON
?
PDF
Git - An Introduction
Behzad Altaf
?
PDF
??????? 1???, ????????? ???????
Brian Hong
?
PDF
GitHub Actions in action
Oleksii Holub
?
PDF
Git Tutorial
MDLicht
?
テ?サ?イナのための赫庄岳秘壇
dsuke Takaoka
?
Git and git flow
Fran Garc┴a
?
Git in 10 minutes
Safique Ahmed Faruque
?
Github - Git Training 際際滷s: Foundations
Lee Hanxue
?
Git flow
DaeMyung Kang
?
‐Unite 2017 Tokyo/仝\T平と易の徴藍々にみるC#でy匯したサ`バ`/クライアント_kとFg議なUniRx聞いこなしg
Unity Technologies Japan K.K.
?
CI/CD with GitHub Actions
Swaminathan Vetri
?
CICD Pipeline Using Github Actions
Kumar Sh━vam
?
??? ????? Jenkins ?????
?? ?
?
はじめての赫庄岳 韓看姻デザイナ`Ε芥`ダ`
Saeko Yamamoto
?
Les bases de git
Pierre Sudron
?
Advanced Git
Sergiu-Ioan Ungur
?
Git and github 101
Senthilkumar Gopal
?
LetSwift 2017 - ?? iOS ?? ??/?? ??
Mintak Son
?
svn ???? ?? git ?? ???
Insub Lee
?
???, unity build? ???? ?????, NDC2010
devCAT Studio, NEXON
?
Git - An Introduction
Behzad Altaf
?
??????? 1???, ????????? ???????
Brian Hong
?
GitHub Actions in action
Oleksii Holub
?
Git Tutorial
MDLicht
?
Similar to [NDC16] Effective Git
(20)
PPTX
Git
Yong Min Lee
?
PPTX
Git
Junyoung Lee
?
PPT
Git from google techtalks by Randal
yagurchoi
?
PDF
Git: A Motivating Introduction
Jongwook Choi
?
PDF
git-basic-commands
insanehong Kim
?
PDF
About git
?? ?
?
PDF
?????? ?????? ?? ???
Jongdeok Kim
?
PDF
Git? ?? ? ????!
Young Kim
?
PDF
????(SourceTree)? ??? Git ???
?? ?
?
PDF
Git ????? ??? ??? ??????
Dabi Ahn
?
PPTX
Git ??
HyunWook Kang
?
PDF
Git branch stregagy & case study
Woo Jin Kim
?
PDF
11. git basic
Geunhyung Kim
?
PPTX
Advanced git
chanwoo Jeong
?
PPTX
Git lecture2
ssuseraf62e91
?
PPTX
????GIS ?? ?? ????
BJ Jang
?
PPTX
Git ??
?? ?
?
PDF
Git tutorials
wonmin lee
?
PDF
????????????????? ??????? ????
Jong-il Seok
?
PPTX
Git command
Hyeongmin Lee
?
Git
Yong Min Lee
?
Git
Junyoung Lee
?
Git from google techtalks by Randal
yagurchoi
?
Git: A Motivating Introduction
Jongwook Choi
?
git-basic-commands
insanehong Kim
?
About git
?? ?
?
?????? ?????? ?? ???
Jongdeok Kim
?
Git? ?? ? ????!
Young Kim
?
????(SourceTree)? ??? Git ???
?? ?
?
Git ????? ??? ??? ??????
Dabi Ahn
?
Git ??
HyunWook Kang
?
Git branch stregagy & case study
Woo Jin Kim
?
11. git basic
Geunhyung Kim
?
Advanced git
chanwoo Jeong
?
Git lecture2
ssuseraf62e91
?
????GIS ?? ?? ????
BJ Jang
?
Git ??
?? ?
?
Git tutorials
wonmin lee
?
????????????????? ??????? ????
Jong-il Seok
?
Git command
Hyeongmin Lee
?
Ad
[NDC16] Effective Git
1.
Effective Git ?? ???
? ???? ???
2.
??
3.
??? ? 2010-2014.3 <?????> ?
2014.3-2014.11 <Project N> ? 2014.12- <??? ?: ???> ? KGC14 <????? ?????> ? NDC15 <????? ? ????> ? NDC16 <Find My AndPhone> ? NDC16 <Effective Git> kexplo http://chanwoong.kim cwkim@nexon.co.kr kexplo
4.
?? ??
5.
Git ????? ?? ?
??? ???? VCS? ???? ?? ? ?? VCS? ???? ???? ?? ? svn checkout ★ git clone ? svn update ★ git pull ? svn commit ★ git commit
6.
? ???? ??
?? ? ???? ?? ????? ?? ? Git? ?? ?? ???? ??! ? http://d.hatena.ne.jp/gu_he_he/20120322/1332419643 ?? Git ?? ????
7.
??? ?? Git ??? ??? push,
commit ??? ???? ??? ?? ??? ?? ???? ?? ?? ?? ?? ?
8.
?? ???? ??
??? ? ???? ? git? command line?? ?? ?? ? ? GUI ?? ?? ?? ? Staging area ? ?? ???? ?
9.
?? ?? ??? ?
?? Git ??? ? ??? Git? ???, Git? ?? ?? ?? ????? ´ ? Git ?? ?? ? blob, tree object, commit object, ´ ? ?? ??? ??? ???´
10.
?? ? ??? ?
Git ?? ?? ? Rebase ? ?? ??? ? ?? 16?? ?? ?? ? 3?? ??? ???? ?? ? ??? ?? ??
11.
?? ? ??? ?
Git ?? ?? ? Rebase ? ?? ??? ? ?? 16?? ?? ?? ? 3?? ??? ???? ?? ? ??? ?? ?? 1. ??? ??? 2. ?? ???? 3. ?? ????
12.
Git ?? ?? git
flow Forward-porting
13.
Branching, Merge? ??
?? ??? ?? == ?? ?? ??
15.
Git-flow gitflow Forwa
16.
Git-flow ??? ?? ?
Vincent Driessen? ?? ? ??? ?? ???? ???? ?? ? master branch: ?? ?? ? develop branch: ?? ?? ? ??? ?? ??? ? ??? ?? ?? ? Git-flow? ???? ??, ??? ??/??? ?? ? ?
17.
? ?? ?? develop
18.
? ?? ?? develop feature/awesome $
git flow feature start awesome $ git commit -a $ git commit -a $ git commit -a
19.
? ?? ?? develop feature/awesome $
git flow finish awesome
20.
? ?? develop
21.
? ?? develop release/v1.0.0 $ git
flow release start v1.0.0 $ git commit -a $ git commit -a $ git commit -a
22.
? ?? develop $ git
flow release finish v1.0.0 master tag v1.0.0
23.
? ?? master tag v1.0.0
24.
? ?? master hotfix/fix1 $ git
flow hotfix start fix1 $ git commit -a $ git commit -a $ git commit -a
25.
? ?? master $ git
flow hotfix finish fix1 develop tag fix1 hotfix/fix1
26.
? ?? develop feature/awesome release/v1.0.0 master feature release hotfix tag v1.0.0 hotfix/fix1 tag
fix1
27.
? ?? develop feature/awesome release/v1.0.0 master feature release hotfix tag v1.0.0 hotfix/fix1 tag
fix1
28.
? ?? develop feature/awesome release/v1.0.0 master feature release hotfix tag v1.0.0 hotfix/fix1 tag
fix1
29.
? ?? develop feature/awesome release/v1.0.0 master feature release hotfix tag v1.0.0 hotfix/fix1 tag
fix1
30.
?? ? ??? ?? ?
feature ★ develop ?? ?? == ??? ??? ??? ? ?? ??? feature branch? ???? ?? ??? ??? ?? ? ?? ?? ? ???? ??? ??? ?? ??? Hook?? ?? ?? ? hotfix ??? ?? ??
31.
Forward-porting Forward-p gitf
32.
feature/blahblah master Forward-porting
33.
feature/blahblah $ git pull
--rebase origin/master origin/master Forward-porting master
34.
feature/b origin/master Forward-porting $ git
pull --rebase origin/master master
35.
?? ? ?? ????
??? ?? ? ?? ??? ?? ??? ?? ? ???? ?? ???? ??? ?.. ? ?? ??? ?? ???? ??, ?? ?? ? ?? ?? ?? ? ? ??? ??? ??? ? ? ?? ? ?? ??? ??? ?? ? ??? ??? ? ?? ??? ?? ??? ???? ???? OK
36.
? ??????? ? Git-flow ?
release ???? Hook? ?? ? ??? ???? ?? ??, ???, ?? ? Forward-porting ? ?? ???? ??? ??? ? ?? ?? ?? ? ?? ?? ?, ??? ??? ???(?)? ?? ??
37.
Rebase rebase ?? ?? ??
????
38.
rebase ?? ?? rebase? ???
39.
Rebase ? Base? ???(Re-)??
?? ? Forward-porting? Rebase? ??? ?? ? Rebase? ?? base? ?? ?? ?? ???? ??
40.
B C D feature/abc E
FA develop HEAD
41.
B C D feature/abc E
FA develop $ git checkout feature/abc $ git rebase develop HEAD
42.
B C D feature/abc E
FA develop ?? ??? ?? HEAD
43.
B C D feature/abc E
FA develop ????? ? ???? ??? ??? ? HEAD B C D
44.
B` C` D` feature/abc E
FA develop ?? ???? ?? HEAD B C D B C D
45.
?? ???? ????? reba
46.
??? ??? ??
??? $ git rebase Ci [<?? ??>]
47.
??? ??? ??
??? $ git rebase Ci [<?? ??>]
48.
Rebase? ?? ???
?? ???? ??? ??, ??? ???? ??? ? ??.
49.
16?? ?? ?? 1.
??? ??? 2. ?? ???? 3. ?? ????
50.
1. ??? ??? stash bisect blame worktree Hunk
?? ???? ?? ??? ?? ???? alias shallow clone 2. ?? ???? 3. ?? ????
51.
$ git stash
save Pop Apply List drop stash bise bla workt Hunk ??? ali shall
52.
?? ? ???? ?
?? ???? ? ? ?? A? ?? ???, ?? B? ?? ? ????? ? ABC
53.
stash? ?? ??
????? ?? ?? ?? stash stack? ?? ???. WIP WIP stash Working Directory git stash save git stash pop
54.
??? ? ?? ??
?? ?? ?? ?? ? ??? ??? ?? ? ? ?? ?? ?? ???
55.
git stash ? ??
?? ?? ?? ?? ?? ? $ git stash save ? ??? ??? ?? ? ? ?? ?? ?? ??? ? $ git stash pop
56.
?? ??? ?? ?
$ git stash list ? $ git stash apply [<stash>] ? $ git stash drop [<stash>]
57.
$ git bisect
start good bad log reset bisect sta bla workt Hunk ??? ali shall
58.
?? ? ?? ??
??? ????. ? ???? ? ?? ???? ? ?? ??? ?? ??? ?? ? ???? ??? ??? ?? ? http://ff663.blogspot.kr/2010/05/201058- in-english-i-feel-complete.html
60.
bisect? ??? ??
??? ??? ??? ?? ?? ?? ??.
61.
HEAD
62.
$ git bisect
start HEAD
63.
$ git bisect
start $ git bisect bad HEAD
64.
$ git bisect
start $ git bisect bad $ git bisect good f794027 f794027 HEAD
65.
f794027 HEAD
66.
$ git bisect
good f794027 HEAD
67.
f794027 HEAD
68.
f794027 HEAD $ git bisect
bad
69.
f794027 HEAD
70.
f794027 HEAD $ git bisect
bad
71.
f794027 HEAD $ git bisect
bad
72.
? ? ? $
git bisect log ? $ git bisect reset
73.
?.. ??? ????? ?
?? ???! ? ??? ?? ??! (???? ??? ??)
74.
? $ git
bisect start ? # test_error.sh? ??? ?? ?? 1? ??. ? $ git bisect run test_error.sh
75.
$ git blame -L
<start,end> -C blame sta bise workt Hunk ??? ali shall
76.
blame ? bisect? ??
??? ???? ? ?? ???? ?? ??(?)? ? ?? ? ?????
77.
$ git blame
-L 10,11 effective_git.md
78.
$ git blame
-L 10,11 effective_git.md ??? ?? ?? ?? ? ?? ?? ??
79.
$ git blame
-L 10,11 effective_git.md ??? ?? ?? ?? ? ?? ?? ?? -C ??? ?? ??
80.
$ git worktree
add prune list worktree sta bla bise Hunk ??? ali shall
81.
?? ? ????
(???) ? ?? ???? ? ? ?? A? ?? ???, ?? B? ?? ? ????? ? ABC
82.
?? ? ????
(???) ? ?? ???? ? ? ?? A? ?? ???, ?? B? ?? ? ????? ? ?? ??? ? ? ? ABC
83.
?? ??? ?? ?
?? ????? ??? ??? ?? ?? ? ???? ??? ????, ???? ??? ????´ ? stash? ? ???, untracked ??? ? ??´ ? ?? ?? ??? ???? ?? ??
84.
?? ??? ?? ?
?? ????? ??? ??? ?? ?? ? ???? ??? ????, ???? ??? ????´ ? stash? ? ???, untracked ??? ? ??´ ? ?? ?? ??? ???? ?? ?? worktree? ?? ?? ?? ??? ??? ? ?? ? ?
85.
$ git worktree
add Cb emergency-fix ../temp master
86.
$ git worktree
add Cb emergency-fix ../temp master ?? ?? ??? ? worktree ?? ? worktree? chekcout? ???
87.
$ git worktree
add Cb emergency-fix ../temp master $ pushd ../temp # ... ? ?? ... $ popd ??? ???? ? ??? ??? ?? ????
88.
$ git worktree
add Cb emergency-fix ../temp master $ pushd ../temp # ... ? ?? ... $ popd $ rm Crf ../temp $ git worktree prune Worktree? ??
89.
Hunk ??? ??
(`-p¨ ?? ??) $ git add C沿 $ git checkout C沿 $ git stash -p Hunk??? sta bla workt ??? ali bise shall
90.
Atomic commit ? ^(??
? ??)???? ??Atomic ̄? ?? ?? ? ?? VCS??? ???? ?? ? ?? ? ?? ?? ?? ?? ? ?? ?? ??
91.
??? ?? ? ??
?? ? ??? ??? ? ?? ?? ? ? ??. ? ???? ?? ?? ???? ?? ?? ????´
92.
??? ?? ? ??
?? ? ??? ??? ? ?? ?? ? ? ??. ? ???? ?? ?? ???? ?? ?? ????´ ? ?? ? ??? ^-p ̄ ??.
93.
?$ git add
94.
?$ git add
C沿
95.
?$ git add
C沿
96.
?$ git add
C沿 ?$ git reset C沿 ?$ git checkout C沿 ?$ git rm -p
98.
?? ??? ??
???? $ git checkout $ git show ????? sta bla workt Hunk ali bise shall
99.
checkout ? ???? ???
??? ? ?? ??? ??? ???? ? ?? ???
100.
$ git checkout
master -- Readme.md Readme.md? master ???? ??? checkout
101.
show ? 1? ???
????(blob, tree, commit, ´)? ?? ???
102.
? $ git
show fc1b357:Readme.md > master_Readme.md fc1b367 ??? Readme.md? master_Readme.md? ??
103.
alias alias sta bla workt Hunk ??? bise shall
104.
?? ??? ????? ?
??? ?? ?? ? git status ★ git st ? ?? ???? ?? ??? ?? ? ? alias? ????.
107.
git lg ? ??
???? ??? ???? alias [alias] lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold red)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(cyan)<%an>%C(res et)%C(bold yellow)%d%C(reset)' --all
109.
shallow clone $ git
clone Cdepth $ git fetch --depth $ git fetch --unshallow sallowcl sta bla workt Hunk ??? ali bise
110.
??? N? ???
??? ? ? ?? ???, ??, ?? ?? ´ ? ?? ???? ?? ? ?
111.
$ git clone
112.
$ git clone
--depth 1
113.
depth ?? $ git
fetch --depth <N>
114.
Q. Push? ?
??
115.
Q. Push? ?
?? $ git fetch --unshallow
116.
2. ?? ???? 3.
?? ???? git log ??? ???? git log -S ??? ?? ?? git grep git rev-list 1. ??? ???
117.
git log gitlog ??? gitl ??? gitg gitr
118.
?? ?? $ git
log <sha1 hash>
119.
git log ??
?? ? `/¨ ? ??? ?? ? n, N (search Next) ?? ?? ?? ?? ? Vi ?? j, k? ?, ?? ??
121.
??? ???? ^, ~,
.., ... ????? gitl ??? gitg gitr git
122.
?? ???? ???
?? ?? ?? ? ?? ??? ? d206ec8 ?? 727372a? ?? ???
123.
?? ???? ???
?? ?? ?? ? ?? ??? ? d206ec8 ?? 727372a? ?? ??? ? ??? ? ? ?.. ???? ?? ?? ? ?? ??? ?? ????
124.
?? ???? ???
?? ?? ?? ? ?? ??? ? d206ec8 ?? 727372a? ?? ??? ? ??? ? ? ?.. ???? ?? ?? ? ?? ??? ?? ????
125.
^ (Circumflex) ?^n ? n??
?? ??? ??? ? n? 1? ?? ?? ?? ( ^1 == ^ )
126.
HEAD
127.
HEAD HEAD^ HEAD^1 HEAD^2
128.
HEAD HEAD^^
129.
HEAD HEAD^^ (HEAD^)^
130.
~ (Tilde) ? ~n?
n? ? ?? ??
131.
HEAD
132.
HEAD HEAD~ HEAD~1
133.
HEAD HEAD~ HEAD~1HEAD~2
134.
HEAD HEAD~ HEAD~1HEAD~2 HEAD~3
135.
.. (double dot) ?
??? ?? ? ? start..end : end? ??, start? ? ?? ?? ??
137.
HEAD~3..HEAD
138.
? ???
139.
B C D JIHGFE A develop..master?
??? ???? (3?) develop master
140.
B C D JIHGFE A develop..master?
??? ???? (3?) develop master
141.
.. (double dot) ?
??? ??? ?? ? ? start..end : end? ??, start? ? ?? ?? ??
142.
.. (double dot) ?
??? ??? ?? ? ? start..end : end? ??, start? ? ?? ?? ?? end?? ??? ? ??, start?? ??? ? ?? ?? end C start ? ???
143.
B C D JIHGFE A develop master develop..master master??
??? ? ??, develop?? ??? ? ?? ?? master C develop ? ???
144.
... (Triple dot) ?
???? ??? ?? ???? ?? ?? ??? ?? ? ????? A-B B-A $ git log A...B
145.
B C D JIHGFE A develop master develop...master
146.
B C D JIHGFE A develop master develop...master
147.
git log CS<string> gitlog- ??? gitg gitr git ???
148.
git log CS<string>
# pickaxe ? ??? Diff ?????? ???? ?? ? ??? ?? ??? ??? ?? ? -M ??? ????, rename??? ??? ? ??.
149.
??? ?? ?? git
log --follow ???? gitg gitr git ??? gitl
150.
??? ? ?? ?
???? ?? ? ??? ??? ???´ ? ??? ? ???
151.
???? ??
152.
$ git log
Cfollow -- filepath
153.
$ git grep gitgrep gitr git ??? gitl ???
154.
$ git grep ?
??? ?? ?? ? grep? ?? ? blob object ????? ???? ??. ? ??? ??? ? ? ?? ? $ git grep blahblah ? -- ?? ??? ??? ??? ? ?? ? $ git grep blahblah -- Document
155.
$ git grep
hello # -- ?? ??? ??? ??? ? ?? $ git grep hello -- subdirectory
156.
$ git rev-list gitrev-l git ??? gitl ??? gitg
157.
rev-list ? commit object?
?? ???? ?? ?? ? ?? ??? ?? ??? ? ?? ? ?? ???? ??? ? ? ?? ? ??? ??? ???? ??
158.
$ git rev-list
master -- Readme.md
159.
rev-list $ git rev-list
master -- Readme.md 727372ac234645eeb891272b3fc73c940ea5f52f c38dc4e678d40dd48072489fda6b8f933cdea0c2 1064cea4cfbf8bd94dff3cc3175d5de2ff5c110c 19424a1bff2223c25905c2e732a857911a0d7c54 189952e05d7cc97a7e408480d00c39c8ab754489
160.
rev-list $ git rev-list
Cn 1 master -- Readme.md 727372ac234645eeb891272b3fc73c940ea5f52f
161.
3. ?? ???? 1.
??? ??? 2. ?? ???? git reflog git fsck
162.
Reflog gitreflo gitf
163.
History log? ???
? ? ??? ?? ???? ? ??? ??? ?? ??? ? ( $ git commit Camend ) ? ? ??? ?????, ???? ?? ???? ?? ? ? ???
164.
Commit object? ?? ?
$ git commit --amend ? ?? ? ??? ??? ?. (sha1 hash ?? ???)
165.
B C DA
166.
B C DA $
git commit --amend D`
167.
$ git commit
--amend B C DA D` ?? ??? dangling commit? ??? ??? ?? ? GC? ?? ??? ?? ??
168.
?? Push? ?
??? ??? ?? ? Reflog? ??? ????? ??? ?
169.
?? Push? ?
??? ??? ?? ? Reflog? ??? ????? ??? ? ?? push Cf ? ???? ?? ?????.
170.
1. ??? ??
???(?) ??? ??? 2. hash ? HEAD@{1} ?? ref? HEAD? ??? ?? $ git reset HEAD@{2} ??
171.
? ???
172.
fsck gitfsck gitr
173.
dangling commit ? ???
ref? ??? ??? ? ?? ?? B C DA D` HEAD
174.
dangling commit ?? $
git fsck
175.
?? ?? Gitlab Sourcetree Git kraken
179.
?? ? https://git-scm.com/doc ? http://danielkummer.github.io/git-flow-cheatsheet/index.html ?
https://www.sourcetreeapp.com/ ? https://www.gitkraken.com/ ? https://about.gitlab.com/
180.
?????. cwkim@nexon.co.kr
Download