-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathslide.html
More file actions
229 lines (167 loc) · 7.64 KB
/
Copy pathslide.html
File metadata and controls
229 lines (167 loc) · 7.64 KB
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="de" style="background-color: #cff0f1;">
<head>
<meta charset="utf-8" />
<title>Arbeitsablauf - als Präsentation</title>
<meta name="viewport" content="width=1024, user-scalable=no" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<!-- Replace path with correct path to deck.core.css. -->
<link rel="stylesheet" href="/assets/css/deck.core.css" type="text/css" />
<link rel="stylesheet" href="/assets/css/style-theme.css" type="text/css" />
<link
rel="stylesheet"
href="/assets/css/transition-theme.css"
type="text/css"
/>
<link rel="stylesheet" href="/assets/css/deck.goto.css" />
<link rel="stylesheet" href="/assets/css/deck.status.css" />
<link rel="stylesheet" href="/assets/css/deck.hash.css" />
<link rel="stylesheet" href="/assets/css/style.css" />
<style>
/* google code prettify */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: inherit !important;
}
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: none repeat scroll 0 0 #eefeee;
}
ol.linenums {
margin-left: 80px !important;
}
/* deck */
h4.caption {
color: #999999;
}
h4.caption small {
color: black;
}
table.table-bordered {
border-collapse: separate;
}
table.table-bordered td,
table.table-bordered th {
border: 2px white solid;
padding: 2px;
}
.slide img[src$="svg"] {
width: 100%;
}
</style>
<!-- Any other extension CSS files go here. -->
<!-- Replace path with correct path to Modernizr file. -->
<script src="/assets/js/modernizr.custom.js"></script>
</head>
<body class="deck-container">
<!-- Create any number of elements with class slide within the container -->
<div class="slide">
<h1>Arbeitsablauf</h1>
<p>
vorige Präsentation:
<a href="/git/versionskontrolle//slide.html">Versionskontrolle</a> |
<a href="/git/basic-git/"
>zurück zum Buch-Kapitel [esc]</a
>
| Nächste Präsentation
<a href="/git/git-status//slide.html">Status von Git abfragen</a>
</p>
</div>
<div class="slide"><p>Diese Abbildung zeigt die wichtigsten Fachbegriffe von git:</p>
</div>
<div class="slide">
<p>Als <strong>working copy</strong> werden die Dateien und Ordner bezeichnet, die auf meinem lokalen Rechner aktuell im Filsystem sichtbar sind. Mit diesen kann ich also „ganz normal“ arbeiten: editieren, im Browser betrachten, etc.</p>
</div>
<div class="slide">
<p>Im <strong>lokalen Repository</strong> (local repository) verwaltet und speichert git alle „alten Versionen“ der Dateien. Mein lokales Repository unterscheidet sich technisch nicht von anderen Repositories, die ich als remote Repositories ansprechen kann.
Das local repository befindet sich im Ordner <strong>.git</strong>
</div>
<div class="slide">
<p>Fachbegriffe und wichtigste Aktionen mit git</p>
<p><img src="/images/git/git-basic-workflow.png" srcset="/images/git/git-basic-workflow.png 1x, /images/git/[email protected] 2x" alt="Abbildung 141: Fachbegriffe und wichtigste Aktionen mit git" ></p>
</div>
<div class="slide">
<p>Wenn ich eine Veränderung an einer Datei vorgenommen habe, kann ich sie
mit dem Befehl <strong>add</strong> in den Zustand <strong>staged</strong> versetzten. Ich sammle Schritt
für Schritt die Dateien zusammen, die ich gemeinsam <strong>committen</strong> will.</p>
</div>
<div class="slide">
<p>Mit dem Befehl <strong>commit</strong> werden die gestageden Dateien im lokalen Repository
abgespeichert, und erhalten dort einen eindeutigen Hash und eine Meldung (die
ich dazu eingebe).</p>
</div>
<div class="slide">
<p>Mit dem Befehl <strong>push</strong> kann ich die commits aus meinem lokalen Repository
in ein anderes, remote Repository übertragen. Meist hat man nur ein remote
Repository - als <strong>ein</strong> zentrales Repository.</p>
</div>
<div class="slide">
<h2 id="arbeitsablauf">Arbeitsablauf</h2>
<p>Wenn ein Webprojekt schon für die Arbeit mit git aufgesetzt ist, sieht der Arbeitsalltag z.B. so aus:</p>
<p>Meine working copy ist direkt im Webspace meines lokalen Webserver gespeichert. Ich nehme Änderungen an einer Datei „form.html“ und einer dazu gehörigen Datei „bestellung.php“ vor, teste über den lokalen Webserver ob alles funktioniert.</p>
</div>
<div class="slide">
<p>Wenn ich einen Zustand erreicht habe, der funktioniert dann ist es Zeit für einen Commit:</p>
<p>Zuerst muss ich entscheiden welche Dateien / Änderungen zum Commit gehören.</p>
<pre><code> git add form.html
git add bestellung.php
</code></pre>
<p>Nun befinden sich die Änderungn von form.html und bestellung.html in der staging area, und sind bereit für einen commit. Dazu gebe ich noch einen kurzen Kommentar ein:</p>
<pre><code> git commit –m 'bestellformular von get auf post umgestellt – wir sind restful!'
</code></pre>
<p>Damit habe ich meine Änderungen im lokalen Repository gespeichert.</p>
</div>
<div class="slide">
<p>Nun kann ich das nächste Arbeitspaket angehen. Wenn ich einige Arbeitspakete erledigt habe und meine Ergebnisse veröffentlichen will (egal ob in einem kleinen Team, oder auf github für die ganze Welt) führe ich einen push auf ein remote repository durch:</p>
<pre><code>git push origin main
</code></pre>
<p>Das erste Argument „origin“ ist der Name des remote Repositories, das zweite Argument ist der Branch der gepushed werden soll. Sie werden in diesem Semester immer nur mit einem remote repository und mit dem Branch main arbeiten.</p>
</div>
<div class="slide">
<h1>Arbeitsablauf</h1>
<p>
vorige Präsentation:
<a href="/git/versionskontrolle//slide.html">Versionskontrolle</a> |
<a href="/git/basic-git/"
>zurück zum Buch-Kapitel [esc]</a
>
| Nächste Präsentation
<a href="/git/git-status//slide.html">Status von Git abfragen</a>
</p>
</div>
<!-- Other extension HTML snippets go here, at the bottom of the deck container. -->
<!-- deck.status snippet -->
<p class="deck-status">
<span class="deck-status-current"></span>
/
<span class="deck-status-total"></span>
</p>
<!-- deck.hash snippet -->
<a href="." title="Permalink to this slide" class="deck-permalink">#</a>
<!-- Update these paths to point to the correct files. -->
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/deck.core.js"></script>
<script src="/assets/js/deck.hash.js"></script>
<script src="/assets/js/deck.goto.js"></script>
<script src="/assets/js/deck.status.js"></script>
<!-- Add any other extension JS files here -->
<script src="/assets/js/deck.escape.js"></script>
<script src="/assets/js/deck.fullscreen.js"></script>
<!-- Initialize the deck. You can put this in an external file if desired. -->
<script src="/assets/js/godeck.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/css.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/shell.min.js"></script>
<script>hljs.highlightAll();</script>
</body>
</html>