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
67d6f362
Commit
67d6f362
authored
Mar 24, 2017
by
Sven Greiner
Browse files
Branches auflisten und löschen
parent
fd4b9fc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
vortrag.tex
View file @
67d6f362
...
...
@@ -536,20 +536,72 @@
\end{itemize}
\end{frame}
\begin{frame}
{
Branches auflisten und löschen
}
\begin{columns}
\column
{
.5
\textwidth
}
\begin{block}
{
Auflisten
}
\bigskip
\begin{itemize}
\item
Lokale Branches
\medskip\lstinline
{
\$
git branch
}
\bigskip
\item
Remote Tracking Branches
\medskip\lstinline
{
\$
git branch -r
}
\bigskip
\item
Alle Branches
\medskip\lstinline
{
\$
git branch -a
}
\end{itemize}
\medskip
\end{block}
\column
{
.5
\textwidth
}
\begin{block}
{
Löschen
}
\bigskip
\begin{itemize}
\item
Lokale Branches
\medskip\lstinline
{
\$
git branch -d <NAME>
}
\bigskip
\item
Remote Tracking Branches
\medskip\lstinline
{
\$
git branch -r -d <NAME>
}
\bigskip
\item
Remote Branches
\medskip\lstinline
{
\$
git push origin :<NAME>
}
\end{itemize}
\medskip
\end{block}
\end{columns}
\end{frame}
\begin{frame}
\begin{taskbox}
{
75
mm
}
\begin{taskbox}
{
80
mm
}
\begin{itemize}
\setlength
{
\itemsep
}{
1em
}
\item
Lege Branches an, mache Commits, wechsle Branches
\item
Merge Branches, achte auf Konflikte!
\item
Lösche einen Branch nach dem Mergen
\end{itemize}
\end{taskbox}
\vskip
3
em
\vskip
2
em
\hfill
\begin{helpbox}
{
90mm
}
\lstinline
{
git branch <NAME>
}
,
\quad
\lstinline
{
git checkout -b <NAME>
}
\\
\lstinline
{
git checkout <NAME>
}
,
\quad
\lstinline
{
git merge <NAME>
}
\lstinline
{
git checkout <NAME>
}
,
\quad
\lstinline
{
git merge <NAME>
}
\\
\lstinline
{
git branch -d <NAME>
}
\end{helpbox}
\end{frame}
...
...
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