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
5822bc74
Commit
5822bc74
authored
11 years ago
by
Philippe Dosch
Browse files
Options
Downloads
Patches
Plain Diff
More details on beanches, code parts now in boxes
parent
2fdc0356
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
brancheintro.tex
+39
-17
39 additions, 17 deletions
brancheintro.tex
with
39 additions
and
17 deletions
brancheintro.tex
+
39
−
17
View file @
5822bc74
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
\item
\item
Il est possible de créer de nouvelles branches pour faire évoluer,
Il est possible de créer de nouvelles branches pour faire évoluer,
\textit
{
simultanément
}
, le développement dans des directions
\textit
{
simultanément
}
, le développement dans des directions
différentes pour permettre
différentes pour permettre
, entre autres
\begin{itemize}
\begin{itemize}
\item
\item
un développement collaboratif (= plusieurs développeurs)
un développement collaboratif (= plusieurs développeurs)
...
@@ -76,12 +76,12 @@
...
@@ -76,12 +76,12 @@
la correction de bugs
la correction de bugs
\item
\item
l'ajout de fonctionnalités
l'ajout de fonctionnalités
\item
etc.
\end{itemize}
\end{itemize}
\item
\item
Un moyen simple de savoir sur quelle branche on se trouve
\\
Un moyen simple de savoir sur quelle branche on se trouve
\mygit
{
git branch
}{
gitbranch1.txt
}
\begin{codebox}
\mygit
{
git branch
}{
gitbranch1.txt
}
\end{codebox}
\item
\item
Le symbole
\ex
{
*
}
désigne la branche courante (utile lorsque
Le symbole
\ex
{
*
}
désigne la branche courante (utile lorsque
plusieurs branches existent)
plusieurs branches existent)
...
@@ -94,9 +94,11 @@
...
@@ -94,9 +94,11 @@
\begin{itemize}
\begin{itemize}
\item
\item
Pour créer une nouvelle branche, ajouter un nom de branche à la
Pour créer une nouvelle branche, ajouter un nom de branche à la
commande précédente
\\
commande précédente
\mygitplus
{
git branch nouveau
}
\\
\begin{codebox}
\mygit
{
git branch
}{
gitbranch2.txt
}
\mygitplus
{
git branch nouveau
}
\\
\mygit
{
git branch
}{
gitbranch2.txt
}
\end{codebox}
\item
\item
Cette commande ne fait que créer une nouvelle branche, elle ne
Cette commande ne fait que créer une nouvelle branche, elle ne
permet pas de basculer vers cette nouvelle branche
permet pas de basculer vers cette nouvelle branche
...
@@ -143,9 +145,14 @@
...
@@ -143,9 +145,14 @@
\item
\item
La commande permettant de changer de branche est
\\
La commande permettant de changer de branche est
\\
\ex
{
git checkout
\emph
{
branche
}}
\\
\ex
{
git checkout
\emph
{
branche
}}
\\
\mygitplus
{
git checkout nouveau
}
\\
\begin{minipage}
{
0.5
\linewidth
}
\mygit
{
git branch
}{
gitbranch3.txt
}
\begin{codebox}
\mygitplus
{
git checkout nouveau
}
\\
\mygit
{
git branch
}{
gitbranch3.txt
}
\end{codebox}
\end{minipage}
\end{itemize}
\end{itemize}
\vspace*
{
-1.5cm
}
\begin{center}
\begin{center}
\includegraphics
[scale=.4]
{
arbrehead2.eps
}
\includegraphics
[scale=.4]
{
arbrehead2.eps
}
\end{center}
\end{center}
...
@@ -174,8 +181,10 @@
...
@@ -174,8 +181,10 @@
\framesubtitle
{
Ajout de
\emph
{
commits
}}
\framesubtitle
{
Ajout de
\emph
{
commits
}}
\begin{itemize}
\begin{itemize}
\item
\item
Les nouveaux
\emph
{
commits
}
sont ajoutés à la branche courante
\\
Les nouveaux
\emph
{
commits
}
sont ajoutés à la branche courante
\mygitplus
{
git commit ...
}
\\
\begin{codebox}
\mygitplus
{
git commit ...
}
\end{codebox}
\end{itemize}
\end{itemize}
\begin{center}
\begin{center}
\includegraphics
[scale=.4]
{
arbrehead3.eps
}
\includegraphics
[scale=.4]
{
arbrehead3.eps
}
...
@@ -193,15 +202,28 @@
...
@@ -193,15 +202,28 @@
\begin{itemize}
\begin{itemize}
\item
\item
Pour créer une branche tout en s'y déplaçant
\\
Pour créer une branche tout en s'y déplaçant
\\
\ex
{
git checkout -b
\emph
{
branche
}}
\\
\ex
{
git checkout -b
\emph
{
branche
}}
\mygit
{
git branch
}{
gitbranch1.txt
}
\begin{codebox}
\mygitplus
{
git checkout -b nouveau
}
\\
\mygit
{
git branch
}{
gitbranch1.txt
}
\mygit
{
git branch
}{
gitbranch3.txt
}
\mygitplus
{
git checkout -b nouveau
}
\\
\mygit
{
git branch
}{
gitbranch3.txt
}
\end{codebox}
\end{itemize}
}
%======================================================================
\frame
{
\frametitle
{
Autres commandes liées aux branches
}
\begin{itemize}
\item
\item
Pour supprimer une branche, qui doit avoir été fusionnée au
Pour supprimer une branche, qui doit avoir été fusionnée au
préalable (utiliser le flag
\ex
{
-D
}
sinon pour forcer la
préalable (utiliser le flag
\ex
{
-D
}
sinon pour forcer la
suppression)
\\
suppression)
\\
\mygitplus
{
git branch -d
\emph
{
branche
}}
\\
\ex
{
git branch -d
\emph
{
branche
}}
\item
Liste des branches dont les apports n'ont pas encore été
fusionnés
\\
\ex
{
git branch -
{}
-no-merged
}
\end{itemize}
\end{itemize}
}
}
...
...
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