Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Git course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
courses
Git course
Commits
74803ac6
Commit
74803ac6
authored
10 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Clarify HEAD
parent
d0537ebd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Updates martijn
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
branching/branching.tex
+5
-4
5 additions, 4 deletions
branching/branching.tex
with
5 additions
and
4 deletions
branching/branching.tex
+
5
−
4
View file @
74803ac6
...
...
@@ -69,9 +69,10 @@
\begin{frame}
\frametitle
{
The current commit:
\bt
{
HEAD
}}
\begin{itemize}
\item
The current commit is called
\bt
{
HEAD
}
(shown in blue).
\item
\bt
{
HEAD
}
normally points to the current branch.
\item
Or to a commit if there is no current branch.
\item
The current commit is called
\bt
{
HEAD
}
(shown in blue here).
\item
\bt
{
HEAD
}
is actually a pointer to the current branch.
\item
(Or to the current commit if there is no current branch -- this is
called detached head state.)
\end{itemize}
\vspace
{
1cm
}
\includegraphics
[width=10cm]
{
images/head
}
...
...
@@ -82,7 +83,7 @@
\begin{itemize}
\item
Committing moves the current branch to the new commit.
\item
Of course,
\bt
{
HEAD
}
moves with it.
\item
If there is no current branch
, only
\bt
{
HEAD
}
moves.
\item
(In detached head state
, only
\bt
{
HEAD
}
moves.
)
\end{itemize}
\vspace
{
1cm
}
\includegraphics
[width=10cm]
{
images/commit
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment