2012-09-27 22:34:43 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
<meta name="viewport" content="width=1024, user-scalable=no">
|
|
|
|
|
2012-10-10 22:44:31 +02:00
|
|
|
<title>Dokumente verwalten mit GIT</title>
|
2012-09-27 22:34:43 +02:00
|
|
|
|
|
|
|
<!-- Required stylesheet -->
|
|
|
|
<link rel="stylesheet" href="core/deck.core.css">
|
|
|
|
|
|
|
|
<!-- Extension CSS files go here. Remove or add as needed. -->
|
|
|
|
<link rel="stylesheet" href="extensions/goto/deck.goto.css">
|
|
|
|
<link rel="stylesheet" href="extensions/menu/deck.menu.css">
|
|
|
|
<link rel="stylesheet" href="extensions/navigation/deck.navigation.css">
|
|
|
|
<link rel="stylesheet" href="extensions/status/deck.status.css">
|
|
|
|
<link rel="stylesheet" href="extensions/hash/deck.hash.css">
|
|
|
|
<link rel="stylesheet" href="extensions/scale/deck.scale.css">
|
|
|
|
|
2012-09-27 23:19:00 +02:00
|
|
|
<!-- <link rel="stylesheet" href="themes/transition/horizontal-slide.css"> -->
|
|
|
|
|
2012-09-27 22:34:43 +02:00
|
|
|
<!-- Style theme. More available in /themes/style/ or create your own. -->
|
2012-09-27 23:19:00 +02:00
|
|
|
<link href="themes/style/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
2012-09-27 22:34:43 +02:00
|
|
|
|
|
|
|
<!-- Required Modernizr file -->
|
|
|
|
<script src="modernizr.custom.js"></script>
|
|
|
|
</head>
|
|
|
|
<body class="deck-container">
|
|
|
|
|
|
|
|
<!-- Begin slides. Just make elements with a class of slide. -->
|
|
|
|
<header>
|
2012-09-27 22:42:19 +02:00
|
|
|
<nav>
|
2012-09-27 23:19:00 +02:00
|
|
|
<h1>Dokumente verwalten mit Git</h1>
|
2012-09-27 22:42:19 +02:00
|
|
|
</nav>
|
2012-09-27 22:34:43 +02:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="slide">
|
2012-10-10 22:44:31 +02:00
|
|
|
<h1>What is this all about?</h1>
|
|
|
|
<ul>
|
|
|
|
<li>Was ist eine Versionsverwaltung?</li>
|
|
|
|
<li>Was ist GIT?</li>
|
2012-10-10 23:35:39 +02:00
|
|
|
<li>Was ist ein Branch?</li>
|
2012-10-10 22:44:31 +02:00
|
|
|
<li>Wie installiere ich GIT?</li>
|
|
|
|
<li>Wie lege ich ein Repository an?</li>
|
|
|
|
<li>Wie füge ich eine Datei hinzu?</li>
|
|
|
|
<li>Wie lasse ich mir die Unterschiede anzeigen?</li>
|
|
|
|
<li>Wie komme ich an eine alte Version ran?</li>
|
|
|
|
</ul>
|
2012-09-27 22:34:43 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="slide">
|
2012-10-10 22:44:31 +02:00
|
|
|
<h1>Was ist eine Versionsverwaltung?</h1>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="slide">
|
|
|
|
<h1>Was ist GIT?</h1>
|
|
|
|
</section>
|
|
|
|
|
2012-10-10 23:35:39 +02:00
|
|
|
<section class="slide">
|
|
|
|
<h1> was ist ein Branch?</h1>
|
|
|
|
</section>
|
|
|
|
|
2012-10-10 22:44:31 +02:00
|
|
|
<section class="slide">
|
|
|
|
<h1>Wie installiere ich GIT?</h1>
|
2012-10-10 23:35:39 +02:00
|
|
|
<p><strong>Windows</strong></p>
|
|
|
|
<p>http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git</p>
|
|
|
|
<p><strong>Linux</strong></p>
|
|
|
|
<pre><code>
|
|
|
|
# Debian
|
|
|
|
$ apt-get install git-core
|
|
|
|
# RedHat
|
|
|
|
$ yum install git
|
|
|
|
# gentoo
|
|
|
|
$ emerge git
|
|
|
|
</code></pre>
|
2012-09-27 22:34:43 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="slide">
|
2012-10-10 22:44:31 +02:00
|
|
|
<h1>Wie lege ich ein Repository an?</h1>
|
2012-10-10 23:35:39 +02:00
|
|
|
<pre><code>
|
|
|
|
$ git init
|
|
|
|
</code></pre>
|
2012-09-27 22:34:43 +02:00
|
|
|
</section>
|
|
|
|
|
2012-10-10 22:44:31 +02:00
|
|
|
<section class="slide">
|
|
|
|
<h1>Wie füge ich eine Datei hinzu?</h1>
|
2012-10-10 23:35:39 +02:00
|
|
|
<pre><code>
|
|
|
|
$ git add hausarbeit.tex
|
|
|
|
$ git commit -m "Erster Commit meiner tollen Hausarbeit"
|
|
|
|
</code></pre>
|
2012-10-10 22:44:31 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="slide">
|
|
|
|
<h1>Wie lasse ich mir die Unterschiede anzeigen?</h1>
|
2012-10-10 23:35:39 +02:00
|
|
|
<pre><code>
|
|
|
|
$ git diff hausarbeit.tex
|
|
|
|
</code></pre>
|
2012-10-10 22:44:31 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="slide">
|
|
|
|
<h1>Wie komme ich an eine alte Version ran?</h1>
|
2012-10-10 23:35:39 +02:00
|
|
|
<pre><code>
|
|
|
|
$ git log
|
|
|
|
$ git checkout <versionshash>
|
|
|
|
$ git checkout master
|
|
|
|
</code></pre>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="slide">
|
|
|
|
<h1>Noch fragen?</h1>
|
|
|
|
<h2>Was nicht erwähnt wurde</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Noch mehr branching</li>
|
|
|
|
<li>Entfernte Repositories</li>
|
|
|
|
<li>rebase</li>
|
|
|
|
<li>stash</li>
|
|
|
|
|
|
|
|
</ul>
|
2012-10-10 22:44:31 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
|
2012-09-27 22:34:43 +02:00
|
|
|
<!-- End slides. -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Begin extension snippets. Add or remove as needed. -->
|
|
|
|
|
|
|
|
<!-- deck.navigation snippet -->
|
|
|
|
|
|
|
|
<!-- deck.status snippet -->
|
|
|
|
<p class="deck-status">
|
|
|
|
<span class="deck-status-current"></span>
|
|
|
|
/
|
|
|
|
<span class="deck-status-total"></span>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<!-- deck.goto snippet -->
|
|
|
|
<form action="." method="get" class="goto-form">
|
|
|
|
<label for="goto-slide">Go to slide:</label>
|
|
|
|
<input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
|
|
|
|
<datalist id="goto-datalist"></datalist>
|
|
|
|
<input type="submit" value="Go">
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<!-- deck.hash snippet -->
|
|
|
|
<a href="." title="Permalink to this slide" class="deck-permalink">#</a>
|
|
|
|
|
|
|
|
<!-- End extension snippets. -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Required JS files. -->
|
|
|
|
<script src="jquery-1.7.2.min.js"></script>
|
|
|
|
<script src="core/deck.core.js"></script>
|
|
|
|
|
|
|
|
<!-- Extension JS files. Add or remove as needed. -->
|
2012-10-10 23:35:39 +02:00
|
|
|
<script src="core/deck.core.js"></script>
|
|
|
|
<script src="extensions/hash/deck.hash.js"></script>
|
|
|
|
<script src="extensions/menu/deck.menu.js"></script>
|
|
|
|
<script src="extensions/goto/deck.goto.js"></script>
|
|
|
|
<script src="extensions/status/deck.status.js"></script>
|
|
|
|
<script src="extensions/navigation/deck.navigation.js"></script>
|
|
|
|
<script src="extensions/scale/deck.scale.js"></script>
|
2012-09-27 22:34:43 +02:00
|
|
|
|
|
|
|
<!-- Initialize the deck. You can put this in an external file if desired. -->
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$.deck('.slide');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|