Commit 3e2317b9 authored by Martijn Vermaat's avatar Martijn Vermaat

Add slide on git log alias

parent 71493c2b
......@@ -166,6 +166,25 @@ $ git log --oneline --decorate --graph --all
\bt{--all}: Includes all branches instead of just the current.
\end{frame}
\begin{frame}[fragile]
\frametitle{Annotated log as an alias}
For convenience, we can create an alias for the \bt{git log} command with
all the arguments we just used:
\begin{lstlisting}
$ git config --global alias.l \
'log --oneline --decorate --graph --all'
$ git l
* 8fc25c1 (interface) Trivial Python interface
| * c7f3bd9 (HEAD, master) Add .gitignore file
|/
* 4a44c4e Merge branch 'license'
...
\end{lstlisting}
\bigskip
This alias is stored in the \bt{~/.gitconfig} file. You can also edit that
file manually.
\end{frame}
\begin{frame}
\frametitle{Remote branches}
In this course, we don't really discuss branches, except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment