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
Picasoft
Formations
Git niveau 1
Commits
3f31ae01
Verified
Commit
3f31ae01
authored
Sep 30, 2018
by
Thibaud Duhautbout
Browse files
Ajout git stash
parent
00938d61
Pipeline
#27917
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
presentation.tex
View file @
3f31ae01
...
...
@@ -520,7 +520,34 @@ index 951923e..bbbb145 100644
\subsection
{
Enregistrer les modifications locales
}
\begin{frame}
{
git stash
}
\begin{frame}
[fragile]
{
Enregistrer les modifications locales
}
\begin{block}
{
Mise en situation
}
\begin{itemize}
\item
\enquote
{
Tiens, tu pourrais m'envoyer le rapport ?
}
\item
\enquote
{
Euh, en fait je travaille dessus et j'ai changé tout l'ordre donc ça a pas trop de sens...
}
\item
\enquote
{
Bah fais un git stash !
}
\end{itemize}
\end{block}
\verb
+
$ git stash
+
: enregistre les modifications locales et restaure le working directory à l'état du dernier commit.
% TODO exemple à modifier pour suivre l'exemple global de la présentation
\begin{beamercolorbox}
[rounded=true,shadow=true]
{
terminal
}
\begin{Verbatim}
$
git status
Sur la branche master
Modifications qui ne seront pas validées :
modifié :
\textcolor
{
red
}{
presentation.tex
}
$
git stash
Copie de travail et état de l'index sauvegardés dans WIP on local: 00938d6 Ajout diapo HEAD
$
git status
Sur la branche local
rien à valider, la copie de travail est propre
\end
{
Verbatim
}
\end
{
beamercolorbox
}
\end
{
frame
}
\subsection
{
Changer de version
}
...
...
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