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
courses
Git course
Commits
3e2317b9
Commit
3e2317b9
authored
Dec 02, 2015
by
Vermaat
Browse files
Add slide on git log alias
parent
71493c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
merging/merging.tex
View file @
3e2317b9
...
...
@@ -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
*
8
fc
25
c
1
(
interface
)
Trivial Python interface
|
*
c
7
f
3
bd
9
(
HEAD, master
)
Add .gitignore file
|
/
*
4
a
44
c
4
e 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:
...
...
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