Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git-jso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
DOSCH Philippe
git-jso
Commits
21cfb0b9
Commit
21cfb0b9
authored
7 years ago
by
Philippe Dosch
Browse files
Options
Downloads
Patches
Plain Diff
Chgmt titre + git init
parent
457d98d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitrefcard.tex
+90
-4
90 additions, 4 deletions
gitrefcard.tex
with
90 additions
and
4 deletions
gitrefcard.tex
+
90
−
4
View file @
21cfb0b9
...
@@ -9,31 +9,117 @@
...
@@ -9,31 +9,117 @@
% Hack, built from both tocbibbind and scrreprt, in order to
% Hack, built from both tocbibbind and scrreprt, in order to
% have an index entry in the TOC referencing the good page
% have an index entry in the TOC referencing the good page
% (a basic \addcontentsline before \printindex is not efficient enough)
% (a basic \addcontentsline before \printindex is not efficient enough)
\usepackage
{
tocbibindphil
}
%
\usepackage{tocbibindphil}
\newcommand
{
\exindex
}
[1]
{
\index
{
#1@
\texttt
{
#1
}}}
\newcommand
{
\exindex
}
[1]
{
\index
{
#1@
\texttt
{
#1
}}}
\newcommand
{
\inex
}
[1]
{
\input
{
exos/ex#1
}}
\newcommand
{
\inex
}
[1]
{
\input
{
exos/ex#1
}}
% Définition des couleurs
\definecolor
{
localrep
}{
RGB
}{
204,255,204
}
\definecolor
{
index
}{
RGB
}{
204,207,255
}
\definecolor
{
workdir
}{
RGB
}{
255,204,204
}
\definecolor
{
gittitle
}{
HTML
}{
E9D66B
}
% Pour la définition des diagrammes
\usepackage
{
tikz
}
% On active la génération de l'index
\makeindex
\makeindex
\begin{document}
\begin{document}
\begin{center}
\begin{center}
\frame
{
\textbf
{
\Huge
Aide mémoire Git
}}
\begin{tikzpicture}
\tikzset
{
gitl/.style=
{
draw,rectangle,rounded
corners=3pt,fill=gittitle,minimum width=3cm
}}
\node
[gitl]
(T) at (0,0)
{
\huge
\textbf
{
~~Aide mémoire Git~~~
}}
;
\end{tikzpicture}
% \frame{\textbf{\Huge Aide mémoire Git}}
\end{center}
\end{center}
%======================================================================
%======================================================================
\subsection
{
Résumé des commandes
}
\subsection
{
Résumé des commandes
}
%======================================================================
%======================================================================
\subsubsection
{
Commandes de base
}
\subsubsection
{
Création d'un dépôt
}
%======================================================================
% On neutralise le retrait première ligne
\setlength
{
\parindent
}{
0pt
}
\begin{tabular}
{
p
{
1.7cm
}
l
}
\ex
{
git init
}
\exindex
{
git init
}
&
Création d'un
dépôt
\index
{
depot@dépôt
}
vide
\\
\ex
{
git clone
}
\exindex
{
git clone
}
&
Clone d'un
dépôt
\index
{
depot@dépôt
}
\\
\end{tabular}
%======================================================================
\subsubsection
{
Création d'un dépôt
}
%======================================================================
\begin{tabular}
{
p
{
1.7cm
}
l
}
\ex
{
git init
}
\exindex
{
git init
}
&
Création d'un
dépôt
\index
{
depot@dépôt
}
vide
\\
\ex
{
git clone
}
\exindex
{
git clone
}
&
Clone d'un
dépôt
\index
{
depot@dépôt
}
\\
\end{tabular}
%======================================================================
\subsection
{
Scénarios classiques
}
%======================================================================
%======================================================================
\ex
{
git init
}
: création d'un dépôt vide
%======================================================================
\subsection
{
Commandes utiles
}
%======================================================================
%======================================================================
\subsection
{
Configuration
}
\label
{
sec:conf
}
%======================================================================
%======================================================================
%======================================================================
\subsection
{
Détail des commandes
}
\subsection
{
Détail des commandes
}
%======================================================================
%======================================================================
% On rétablit le retrait première ligne
\setlength
{
\parindent
}{
10.95pt
}
%======================================================================
\subsubsection
{
\ex
{
git init
}}
\label
{
sec:gitinit
}
%======================================================================
Remarques :
\begin{itemize}
\item
Nécessaire pour un travail collaboratif, mais déjà très utile pour
un travail en autonomie :
\textit
{
overhead
}
réduit, gestion de
l'historique, manipulations en tout genres...
\item
Crée une branche par défaut, la branche
\ex
{
master
}
\item
Impossible de faire un
\ex
{
git log
}
tant qu'un commit n'a pas été
réalisé
\item
Avant la création du premier dépôt, penser à configurer globalement
\ex
{
git
}
~
\myref
{
conf
}
.
\end{itemize}
\begin{tikzpicture}
% \draw [localrep,very thick] (1,1) circle(1);
% \draw [very thin, gray] (-1,-1) grid[step=0.5](2,2);
% \tikzstyle{localrep}=[draw,rectangle,rounded corners=3pt,localrep]
\tikzset
{
slr/.style=
{
draw,rectangle,rounded
corners=3pt,fill=localrep,minimum width=3cm
}}
\tikzset
{
sin/.style=
{
draw,rectangle,rounded
corners=3pt,fill=index,minimum width=3cm
}}
\tikzset
{
swd/.style=
{
draw,rectangle,rounded
corners=3pt,fill=workdir,minimum width=3cm
}}
\node
[slr]
(L) at (0,0)
{
\begin{tabular}
{
c
}
Yop
\\\raisebox
{
3mm
}{
\rule
{
2.5cm
}{
0.4pt
}}
\\
Argh
\\
Plouf
\end{tabular}
}
;
\node
[sin]
(I) at (4,0)
{
Yop
}
;
\node
[swd]
(W) at (8,0)
{
Zap !
}
;
\end{tikzpicture}
\printindex
\printindex
...
...
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