This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·229 lines (229 loc) · 8.09 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Git-pikakoulutus</title>
<meta charset="utf-8">
<meta name="viewport" content="width=792, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="shower/themes/ribbon/styles/screen.css">
<!--
To apply styles to the certain slides
set slide ID to get needed elements
-->
<style>
#Cover h2 {
margin:30px 0 0;
color:#FFF;
text-align:center;
font-size:70px;
}
#Cover p {
margin:10px 0 0;
text-align:center;
color:#FFF;
font-style:italic;
font-size:20px;
}
#Cover p a {
color:#FFF;
}
.picture h2, .picture li {
color:#FFF;
}
.small {
font-size: 20%;
}
</style>
</head>
<body class="list">
<header class="caption">
<h1>Git-pikakoulutus</h1>
<p>Eetu Huisman <[email protected]></p>
</header>
<section class="slide cover" id="Cover"><div>
<h2>Git-pikakoulutus</h2>
<p>20.5.2013</p>
<img src="pictures/background.jpg" alt="background"/>
</div></section>
<section class="slide" class="caption"><div>
<h2>Mikä Git on?</h2>
<ul>
<li class="next">Versionhallintatyökalu?</li>
<li class="next">Sisällönhallintatyökalu?</li>
<li class="next">Kirjaapitävä tiedostojärjestelmä ihmisille?</li>
<ul>
</div></section>
<section class="slide"><div>
<h2>Ei "evoluution seuraava askel"</h2>
<ul>
<li class="next">SVN – "CVS Done Right"</li>
<li class="next">Git – "What Would CVS Not Do?"</li>
</ul>
</div></section>
<section class="slide"><div>
<h2>Hajautettu</h2>
<ul>
<li>Jokainen kopio on tasavertainen
<ul><li class="next">Mutta jotkut ovat tasavertaisempia kuin toiset</li></ul>
</li>
<li class="next"><span class="small">(Lähes)</span> Kaikki operaatiot ovat paikallisia</li>
<li class="next">Käytetään silti usein "perinteiseen" tapaan</li>
</ul>
</div></section>
<section class="slide"><div>
<h2>CVS/SVN</h2>
<img src="pictures/svn-deltas.png" alt="deltas"/>
</div></section>
<section class="slide"><div>
<h2>Git</h2>
<img src="pictures/git-snapshots.png" alt="snapshots"/>
</div></section>
<section class="slide"><div>
<h2>Jokainen versio</h2>
<ul>
<li>Täydellinen katsaus sen hetkisestä tilanteesta</li>
<li>Viittaukset edeltäjiin</li>
<li>Yksilöivä tunniste</li>
</ul>
</div></section>
<section class="slide cover picture"><div>
<h2>Käsitteitä (ja komentoja)</h2>
<img src="pictures/background.jpg" alt="local workflow"/>
</div></section>
<section class="slide"><div>
<h2>Vaiheet ja tilat</h2>
<ol>
<li>Työhakemisto</li>
<li>Luettelo</li>
<li>Säilö</li>
</ol>
</div></section>
<section class="slide"><div>
<h2>Työhakemisto (Working Directory)</h2>
<ul>
<li>Muutokset edellisen version jälkeen
<ol>
<li class="next">Ei-seuratut tiedostot <code class="next">status</code>
<ul>
<li class="next">Peruutus: poista tiedostot</li>
</ul>
</li>
<li class="next">Seuratut tiedostot <span class="next"><code>status</code>, <code>diff</code></span>
<ul>
<li class="next">Muutokset voi peruuttaa <code class="next">checkout -- [tiedosto(t)]</code></li>
</ul>
</li>
</ol>
</li>
</ul>
</div></section>
<section class="slide"><div>
<h2>Luettelo (Staging (Area)/Index)</h2>
<ul>
<li class="next">Seuraavaan versioon valitut muutokset <span class="next"><code>add</code>, <code>rm</code></span></li>
<li class="next">Samassa tiedostossa voi olla sekä valittuja että muita muutoksia
<ul>
<li class="next"><code>status</code>, <code>diff --cached</code></li>
<li class="next"><code>add --patch</code></li>
</ul>
</li>
<li class="next">Valinnan voi peruuttaa <code class="next">reset HEAD</code></li>
</ul>
</div></section>
<section class="slide"><div>
<h2>Säilö (Repository)</h2>
<ul>
<li class="next">Tehdyt muutokset <code class="next">commit</code></li>
<li class="next">Versiohistoria <code class="next">log</code></li>
<li class="next">Historiaa voi muokata<br/>
<span class="next"><code>rebase --interactive</code>, <code>commit --amend</code></span>
</li>
</ul>
</div></section>
<section class="slide"><div>
<h2>Haarat (Branches)</h2>
<ul>
<li class="next">Jokainen kopio on jo oma haaransa</li>
<li class="next">Lähtökohtaisesti paikallisia</li>
<li class="next">Helppo ja halpa tapa hypätä tekemään jotain ihan muuta
<ol>
<li class="next"><code>branch</code></li>
<li class="next"><code>checkout</code></li>
</ol>
<ul>
<li class="next"><code>checkout -b</code></li>
</ul>
</li>
<li class="next">Lähtökohtaisesti paikallisia</li>
<li class="next">Käytännössä nimi ja osoitin tuoreimpaan versioon</li>
</ul>
</div></section>
<section class="slide"><div>
<h2>Yhdistäminen (Merge)</h2>
<ul>
<li class="next">Haaroilla harvoin tarvetta pitkään ikään
<ol>
<li class="next"><code>checkout</code></li>
<li class="next"><code>merge</code></li>
<li class="next"><code>branch --delete</code></li>
</ol>
</li>
</ul>
</div></section>
<section class="slide"><div>
<h2>Rusinat pullasta (Cherry pick)</h2>
<ul>
<li class="next">Yksittäisen muutoksen vieminen haarasta toiseen <code class="next">cherry-pick</code></li>
<li class="next">Ei pitäisi olla tarvetta usein</li>
</ul>
</div></section>
<section class="slide"><div>
<h2>Kätkö (Stash)</h2>
<ul>
<li class="next">Väliaikainen paikka muutoksille, jotka haluat säästää myöhempää käyttöä varten <code class="next">stash</code></li>
<li class="next">Ei osa minkään haaran versiohistoriaa</li>
<li class="next">Helppo palauttaa <code class="next">stash pop</code></li>
<li class="next">Kätköön mahtuu loputtomasti tavaraa <code class="next">stash list</code></li>
<li class="next">Kätköstä voi myös tehdä haaran <code class="next">stash branch</code></li>
</ul>
</div></section>
<section class="slide"><div>
<h2>Etäsäilöt (Remotes)</h2>
<ul>
<li class="next">Kun haluaa paikalliset muutokset muidenkin käyttöön
<ul>
<li class="next"><code>push</code></li>
<li class="next"><code>svn dcommit</code></li>
</ul>
</li>
<li class="next">Kun haluaa muiden muutokset paikalliseen säilöön
<ul>
<li class="next"><code>pull</code>/<code class="next">rebase</code></li>
<li class="next"><code>svn rebase</code></li>
</ul>
</li>
<li class="next">Voi olla useita</li>
</ul>
</div></section>
<section class="slide cover picture"><div>
<h2>Kata</h2>
<ul>
<li>Kotisivu: <a href="http://schauder.github.io/gitkata/" target="_blank">http://schauder.github.io/gitkata/</a></li>
<li>Säilö: <a href="https://github.com/schauder/gitkata.git"target="_blank">https://github.com/schauder/gitkata.git</a></li>
</ul>
<img src="pictures/background.jpg" alt="background"/>
</div></section>
<section class="slide"><div>
<h2>Linkkejä</h2>
<ul>
<li><a href="http://git-scm.com/" target="_blank">git-scm.com</a></li>
<li><a href="http://tom.preston-werner.com/2009/05/19/the-git-parable.html" target="_blank">The Git Parable</a></li>
<li><a href="http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html" target="_blank">A Note about Git Commit Messages</a></li>
<li><a href="http://www.youtube.com/watch?v=4XpnKHJAok8" target="_blank">Linus Torvalds puhuu Gitistä Googlella</a></li>
</ul>
</div></section>
<div class="progress"><div></div></div>
<script src="shower/shower.min.js"></script>
<!-- Copyright © 2013 Eetu Huisman, Siili Solutions Oyj -->
</body>
</html>