Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sven Greiner
git-workshop
Commits
9e1fb703
Commit
9e1fb703
authored
Mar 20, 2017
by
Sven Greiner
Browse files
Moar Bilder + Content
parent
cacf24b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
git-push-force.png
0 → 100644
View file @
9e1fb703
368 KB
in_case_of_fire.png
0 → 100644
View file @
9e1fb703
147 KB
progit.jpg
0 → 100644
View file @
9e1fb703
135 KB
vortrag.tex
View file @
9e1fb703
\documentclass
[aspectratio=169,12pt]
{
beamer
}
% \documentclass[12pt]{beamer}
%--- includes ------------------------------------------------------------------
...
...
@@ -21,6 +20,7 @@
\usepackage
{
xcolor
}
\usepackage
{
tikz
}
\usetikzlibrary
{
arrows,automata,calc,chains,trees,positioning,scopes,decorations.pathmorphing,decorations.pathreplacing,shapes,backgrounds,tikzmark,fadings,fit
}
\usepackage
{
transparent
}
\usepackage
[absolute,overlay,quiet]
{
textpos
}
\setlength
{
\TPHorizModule
}{
1mm
}
...
...
@@ -91,7 +91,7 @@
%--- metadata ------------------------------------------------------------------
\title
{
Git-Workshop
}
\author
{
Sven Greiner
}
\date
{
2
3
. März 2017
}
\date
{
2
4
. März 2017
}
\titlegraphic
{
\includegraphics
[width=.2\linewidth]
{
git-logo
}
\vskip
2em
}
...
...
@@ -209,6 +209,7 @@
\item
\lstinline
{
\$
git init
}
\item
Fertig
\end{enumerate}
% TODO Leerer Platz
\end{frame}
\begin{frame}
{
Mein erster Commit
}
...
...
@@ -230,14 +231,15 @@
\begin{tikzpicture}
[y=-1cm]
\path
[use as bounding box]
(-0.5,-0.7) rectangle (4.5,0.5);
\draw
<1>[gitlog] (0,0)
\githead
{
A
}
;
\draw
<2>[gitlog] (0,0)
\gitcommit
{
A
}
\gitskip
\gitskip
\gitcommit
{
B
}
\gitskip
\gitskip
\githead
{
C
}
;
\draw
<2>[gitlog] (0,0)
\gitcommit
{
A
}
\gitskip
\gitskip
\githead
{
B
}
;
\draw
<3>[gitlog] (0,0)
\gitcommit
{
A
}
\gitskip
\gitskip
\gitcommit
{
B
}
\gitskip
\gitskip
\githead
{
C
}
;
\end{tikzpicture}
\end{center}
\end{frame}
\begin{frame}
{
Ein Commit im Detail
}
\tabulinesep
=2mm
\begin{tabu}
to
\linewidth
{
>
{
\ttfamily\raggedright
}
X[4]X[3]
}
\begin{tabu}
to
\linewidth
{
>
{
\ttfamily\raggedright
}
X[4
,m
]X[3]
}
80cadb22bcd2cc2dd4b9a337
\ldots
&
SHA1-Hash
\\
SammysHP <sven@sammyshp.de>
&
Autor
\\
Fri Mar 24 14:42:14 2017 +0100
&
Zeit
\\
...
...
@@ -257,7 +259,7 @@
\item
Änderungen am Index (
\lstinline
{
git add
}
) rückgängig machen:
\medskip\lstinline
{
\$
git reset [--
file
]
}
\medskip\lstinline
{
\$
git reset [--
<DATEI>
]
}
\bigskip
...
...
@@ -267,7 +269,7 @@
\begin{itemize}
\item
Textdatei im Stammverzeichnis des Repository
\item
Ein Dateiname
n
pro Zeile
\item
Ein Dateiname pro Zeile
\end{itemize}
\end{itemize}
\end{frame}
...
...
@@ -305,7 +307,7 @@
\begin{itemize}
\item
Mit viel Text
\medskip\
quad\
lstinline
{
\$
git log
}
\medskip\lstinline
{
\$
git log
}
\bigskip
...
...
@@ -372,7 +374,34 @@
\againframe
<6>
{
branchmerge
}
\begin{frame}
{
Exkurs: References
}
\begin{itemize}
\item
Zeiger auf Commits
\bigskip
\item
Häufige refs:
\medskip
\begin{itemize}
\item
\lstinline
{
HEAD
}
-- "`aktueller"' Commit
\item
\lstinline
{
master
}
-- lokaler master-Branch
\item
\lstinline
{
origin/master
}
-- master-Branch im Remote
\end{itemize}
\bigskip
\item
Tags
\medskip
\begin{itemize}
\item
Beliebige Referenzen auf Commits
\item
\zB
Releases
\item
\lstinline
{
git tag <NAME> [-a]
}
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}
{
Mergekonflikte
}
% TODO
\end{frame}
\begin{frame}
{
Verteiltes Arbeiten: Remotes
}
...
...
@@ -414,7 +443,7 @@
\end{itemize}
\end{frame}
\begin{frame}
{
Branch Tracking
}
\begin{frame}
{
Exkurs:
Branch Tracking
}
\begin{itemize}
\item
Beziehungen zwischen Branches
...
...
@@ -465,6 +494,9 @@
\medskip\lstinline
{
\$
git pull [<REMOTE>]
}
\end{itemize}
\begin{textblock}
{
50
}
(105,28)
{
\transparent
{
.7
}
\includegraphics
[width=\linewidth]
{
in
_
case
_
of
_
fire
}}
\end{textblock}
\end{frame}
\begin{frame}
{
Pull im Detail
}
...
...
@@ -540,20 +572,48 @@
\begin{itemize}
\item
<3-> Wir können Vergangenes nicht ändern!
\item
<
4
-> (Es gibt Möglichkeiten -- die wollen wir aber möglichst nie nutzen)
\item
<
3
-> (Es gibt Möglichkeiten -- die wollen wir aber möglichst nie nutzen)
\end{itemize}
\end{frame}
\begin{frame}
{
Wenn's mal schief läuft: Amend
}
\begin{itemize}
\item
Situation:
\medskip
\begin{itemize}
\item
Commit gemacht, etwas vergessen
\item
Noch kein push!
\end{itemize}
\bigskip
\item
Lösung:
\medskip
\begin{itemize}
\item
Änderungen durchführen
\item
\lstinline
{
\$
git commit --amend -a
}
\end{itemize}
\end{itemize}
\begin{textblock}
{
60
}
(100,25)
\only
<2>
{
\begin{tikzpicture}
[y=-1cm]
\path
[use as bounding box]
(-0.5,-0.7) rectangle (5.5,1.3);
\draw
[gitlog]
(0,0)
\gitcommit
{
A
}
\gitskip
\gitskip
\gitcommit
{
B
}
\gitskip
\gitskip
\githead
{
C
}
;
\node
at (2,.85)
{$
\boldsymbol\Downarrow
$}
;
\draw
[gitbranch, lightgray]
(2,2)
\gitbranch
\githead
{
C
}
;
\draw
[gitlog]
(0,2)
\gitcommit
{
A
}
\gitskip
\gitskip
\gitcommit
{
B
}
\gitskip
\gitskip
\githead
{
D
}
;
\end{tikzpicture}
}
\end{textblock}
\end{frame}
\begin{frame}
{
(Do NOT) Use the
\-
-
\-
-force, Luke!
}
\begin{center}
\
lstinline
{
\$
git
push
-
-force
}
\
includegraphics
[width=.6\linewidth, trim=0 0 0 15mm, clip]
{
git
-
push-force
}
\end{center}
\bigskip
\pause
\begin{itemize}
...
...
@@ -586,6 +646,13 @@
\item
Anderes braucht man nur selten
\end{itemize}
\begin{textblock}
{
75
}
(83,8)
{
\transparent
{
.5
}
\fontsize
{
5
}{
5
}
\selectfont
\begin{multicols}
{
4
}
git-add
\\
git-am
\\
git-archive
\\
git-bisect
\\
git-branch
\\
git-bundle
\\
git-checkout
\\
git-cherry-pick
\\
git-citool
\\
git-clean
\\
git-clone
\\
git-commit
\\
git-describe
\\
git-diff
\\
git-fetch
\\
git-format-patch
\\
git-gc
\\
git-grep
\\
git-gui
\\
git-init
\\
git-log
\\
git-merge
\\
git-mv
\\
git-notes
\\
git-pull
\\
git-push
\\
git-rebase
\\
git-reset
\\
git-revert
\\
git-rm
\\
git-shortlog
\\
git-show
\\
git-stash
\\
git-status
\\
git-submodule
\\
git-tag
\\
git-worktree
\\
gitk
\\
git-config
\\
git-fast-export
\\
git-fast-import
\\
git-filter-branch
\\
git-mergetool
\\
git-pack-refs
\\
git-prune
\\
git-reflog
\\
git-relink
\\
git-remote
\\
git-repack
\\
git-replace
\\
git-annotate
\\
git-blame
\\
git-cherry
\\
git-count-objects
\\
git-difftool
\\
git-fsck
\\
git-get-tar-commit-id
\\
git-help
\\
git-instaweb
\\
git-merge-tree
\\
git-rerere
\\
git-rev-parse
\\
git-show-branch
\\
git-verify-commit
\\
git-verify-tag
\\
git-whatchanged
\\
gitweb
\\
git-archimport
\\
git-cvsexportcommit
\\
git-cvsimport
\\
git-cvsserver
\\
git-imap-send
\\
git-p4
\\
git-quiltimport
\\
git-request-pull
\\
git-send-email
\\
git-svn
\\
git-apply
\\
git-checkout-index
\\
git-commit-tree
\\
git-hash-object
\\
git-index-pack
\\
git-merge-file
\\
git-merge-index
\\
git-mktag
\\
git-mktree
\\
git-pack-objects
\\
git-prune-packed
\\
git-read-tree
\\
git-symbolic-ref
\\
git-unpack-objects
\\
git-update-index
\\
git-update-ref
\\
git-write-tree
\\
git-cat-file
\\
git-diff-files
\\
git-diff-index
\\
git-diff-tree
\\
git-for-each-ref
\\
git-ls-files
\\
git-ls-remote
\\
git-ls-tree
\\
git-merge-base
\\
git-name-rev
\\
git-pack-redundant
\\
git-rev-list
\\
git-show-index
\\
git-show-ref
\\
git-unpack-file
\\
git-var
\\
git-verify-pack
\\
git-daemon
\\
git-fetch-pack
\\
git-http-backend
\\
git-send-pack
\\
git-update-server
\ldots\\
git-http-fetch
\\
git-http-push
\\
git-parse-remote
\\
git-receive-pack
\\
git-shell
\\
git-upload-archive
\\
git-upload-pack
\\
git-check-attr
\\
git-check-ignore
\\
git-check-mailmap
\\
git-check-ref-format
\\
git-column
\\
git-credential
\\
git-credential-cache
\\
git-credential-store
\\
git-fmt-merge-msg
\\
git-interpret-trailers
\\
git-mailinfo
\\
git-mailsplit
\\
git-merge-one-file
\\
git-patch-id
\\
git-sh-i18n
\\
git-sh-setup
\\
git-stripspace
\\
\end{multicols}
}
\end{textblock}
\end{frame}
\begin{frame}
{
Hilfreiche Seiten
}
...
...
@@ -600,6 +667,18 @@
\item
Suchmaschinen!
\end{itemize}
\begin{textblock}
{
37
}
(112,20)
\includegraphics
[width=\linewidth]
{
progit
}
\end{textblock}
\end{frame}
\begin{frame}
\begin{center}
\large
\usebeamercolor
[fg]
{
structure
}
Fragen
\qquad
Beispiele
\qquad
Ausprobieren
\end{center}
\end{frame}
% \begin{frame}[plain]{Inhalt}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment