Commit 3e2317b9 authored by Vermaat's avatar Vermaat
Browse files

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.
\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:
$ 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'
This alias is stored in the \bt{~/.gitconfig} file. You can also edit that
file manually.
\frametitle{Remote branches}
In this course, we don't really discuss branches, except:
Supports Markdown
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