Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Mounie
formation-git
Commits
df7670aa
Commit
df7670aa
authored
Sep 08, 2020
by
Grégory Mounié
Browse files
typos
parent
38029253
Changes
1
Hide whitespace changes
Inline
Side-by-side
MOSIG_AdvancedBasic2h/git-model-computer-lab.tex
View file @
df7670aa
...
...
@@ -113,7 +113,7 @@ single file and a first commit.
$
mkdir MiniRepo
$
cd MiniRepo
$
git init .
$
emacs file.txt # add few lines
$
emacs file.txt # add few lines
with your editor
$
git add file.txt
$
git commit -m "message 1"
\end{minted}
...
...
@@ -291,7 +291,7 @@ point to the same file.
\section
{
Headless Git
}
This section discuss about ``detached head'': why do you pass in this
This section discuss
es
about ``detached head'': why do you pass in this
state, and what to do to avoid trouble.
\subsection
{
Get the work directory state of a previous commit
}
...
...
@@ -346,7 +346,7 @@ $ git rev-list --all | xargs git grep <PATTERN>
\end{itemize}
In a Git repository, the only easily visible files are in the ancestor
commits of a entry point:
commits of a
n
entry point:
\begin{itemize}
\item
branches;
\item
tags;
...
...
@@ -384,7 +384,7 @@ $ git commit -m "message dev2"
$
git checkout master
\end
{
minted
}
Com
m
e back to
\texttt
{
develop
}
and check that the commit is there:
Come back to
\texttt
{
develop
}
and check that the commit is there:
\begin
{
minted
}{
console
}
git checkout develop
git log
--
graph
--
oneline
...
...
@@ -399,11 +399,11 @@ commit.
If you come back to the tag
\texttt
{
v
0
.
1
}
from section~
\ref
{
sec:tags
}
,
are you in a detached head state, or not ? Why ?
Try and check
!
Try
to come back to the tag,
and check
!
\section
{
Conclusion
\dots
{}}
Git data storage is addressable by content. The link between files
ar
e
Git data storage is addressable by content. The link between files
compos
e
a direct acyclic graph, with several sources
(
entry points
)
. Most Git
commands create new nodes, new sources or navigate in the
graph. Understanding this graph management is the main challenge of
...
...
Write
Preview
Markdown
is supported
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