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
Admin message
Arrêt du service - 11/07 de 07h30 à 07h45 - Mise à jour de sécurité
Show more breadcrumbs
DOSCH Philippe
git-jso
Commits
9e2db29f
Commit
9e2db29f
authored
11 years ago
by
Philippe Dosch
Browse files
Options
Downloads
Patches
Plain Diff
Add 4 more strategies about branches merging/rebasing
parent
a5a90a4a
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
git.tex
+81
-0
81 additions, 0 deletions
git.tex
with
81 additions
and
0 deletions
git.tex
+
81
−
0
View file @
9e2db29f
...
@@ -1565,6 +1565,87 @@
...
@@ -1565,6 +1565,87 @@
%======================================================================
%======================================================================
\branchstrategie
{
Stratégie 2
}
{
\ex
{
git checkout master
}
\\
\ex
{
git merge nouvfonc
}
\\
\ex
{
git delete branch nouvfonc
}
}
{
strat2.png
}
{
\begin{itemize}
\item
Le commit du changement de titre paraît à part, ce qui n'est pas
encore trop gênant
\item
On a l'impression que les premiers commits sont sur la même lancée
que la branche de nouvelle fonctionnalité, ce qui induit en erreur
: ce n'est pas clair
\end{itemize}
}
%======================================================================
\branchstrategie
{
Stratégie 3
}
{
\ex
{
git checkout nouvfonc
}
\\
\ex
{
git rebase master
}
\\
\ex
{
git checkout master
}
\\
\ex
{
git merge nouvfonc
}
\\
\ex
{
git delete branch nouvfonc
}
}
{
strat3.png
}
{
\begin{itemize}
\item
Tout est linéaire, le commit de la branche dont on est parti étant
en dernier
\item
On ne voit pas bien les commits correspondant à la nouvelle
fonctionnalité (idem stratégie 1 donc)
\end{itemize}
}
%======================================================================
\branchstrategie
{
Stratégie 4
}
{
\ex
{
git checkout nouvfonc
}
\\
\ex
{
git rebase master
}
\\
\ex
{
git checkout master
}
\\
\ex
{
git merge -
{}
-no-ff nouvfonc
}
\\
\ex
{
git delete branch nouvfonc
}
}
{
strat4.png
}
{
\begin{itemize}
\item
Les deux commits correspondant à la nouvelle fonctionnalité
apparaissent clairement.
\item
C'est le schéma le plus lisible.
\end{itemize}
}
%======================================================================
\branchstrategie
{
Stratégie 5
}
{
\ex
{
git checkout master
}
\\
\ex
{
git merge nouvfonc -
{}
-no-ff
}
\\
\ex
{
git delete branch nouvfonc
}
}
{
strat5.png
}
{
\begin{itemize}
\item
Idem à la stratégie 2, ce n'est pas le ff qui s'est fait dans ce
cas.
\end{itemize}
}
%======================================================================
% \frame{\frametitle{Stratégie 1}
% \frame{\frametitle{Stratégie 1}
% \begin{tabular}{lp{3cm}}
% \begin{tabular}{lp{3cm}}
% \begin{minipage}[b]{.5\linewidth}
% \begin{minipage}[b]{.5\linewidth}
...
...
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