Skip to content
Snippets Groups Projects
Commit 2f37daeb authored by Philippe Dosch's avatar Philippe Dosch
Browse files

MAJ du travail collaboratif

parent 77543de0
Branches
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@
\end{itemize}
\begin{codebox}
\mygit{git push}{gitpush.txt}
\mygitti{git push}{gitpush.txt}
\end{codebox}
}
......@@ -194,9 +194,9 @@
\frame{\frametitle{Cas idéal}
\framesubtitle{Du côté de chez Alice...}
\mygitpromptplus{alice}{emacs README}\\
\mygitpromptplus{alice}{git add README}\\
\mygitprompt{alice}{git commit -m "Minor updates"}{gitcomalic.txt}
\mygitpromptplus{alice}{emacs README.md}\\
\mygitpromptplus{alice}{git add README.md}\\
\mygitprompt{alice}{git commit -m "Quelques précisions dans la doc"}{gitcomalic.txt}
\mygitprompt{alice}{git push}{gitpushconf.txt}
}
......@@ -204,9 +204,9 @@
\frame{\frametitle{Cas idéal}
\framesubtitle{Du côté de chez Bob...}
\mygitpromptplus{bob}{emacs README}\\
\mygitpromptplus{bob}{git add README}\\
\mygitprompt{bob}{git commit -m "Bug fixed"}{gitcombob.txt}
\mygitpromptplus{bob}{emacs README.md}\\
\mygitpromptplus{bob}{git add README.md}\\
\mygitprompt{bob}{git commit -m "Un titre ajouté"}{gitcombob.txt}
\mygitprompt{bob}{git push}{gitpushcoll.txt}
}
......@@ -236,18 +236,18 @@
\frame{\frametitle{Conflit}
\framesubtitle{Du côté de chez Alice...}
\mygitpromptplus{alice}{emacs README}\\
\mygitpromptplus{alice}{git add README}\\
\mygitprompt{alice}{git commit -m "Minor updates"}{gitcomalic.txt}
\mygitpromptplus{alice}{emacs README.md}\\
\mygitpromptplus{alice}{git add README.md}\\
\mygitprompt{alice}{git commit -m "Quelques précisions dans la doc"}{gitcomalic.txt}
}
%======================================================================
\frame{\frametitle{Conflit}
\framesubtitle{Du côté de chez Bob...}
\mygitpromptplus{bob}{emacs README}\\
\mygitpromptplus{bob}{git add README}\\
\mygitprompt{bob}{git commit -m "Bug fixed"}{gitcombob.txt}
\mygitpromptplus{bob}{emacs README.md}\\
\mygitpromptplus{bob}{git add README.md}\\
\mygitprompt{bob}{git commit -m "Un titre ajouté"}{gitcombob.txt}
\mygitprompt{bob}{git pull}{gitpullconflit.txt}
}
......@@ -263,7 +263,7 @@
Le fichier en cause contient une zone délimitée par des chevrons
\end{itemize}
\mygit{cat README}{gitconflit.txt}
\mygit{cat README.md}{gitconflit.txt}
}
%======================================================================
......@@ -284,8 +284,8 @@
\frame{\frametitle{Conflit}
\framesubtitle{Du côté de chez Bob...}
\mygitpromptplus{bob}{git add README}\\
\mygitprompt{bob}{git commit -m "Conflict fixed"}{gitconffix.txt}
\mygitpromptplus{bob}{git add README.md}\\
\mygitprompt{bob}{git commit -m "Conflit résolu"}{gitconffix.txt}
\mygitprompt{bob}{git push}{gitpushconf.txt}
}
[master c70cf61] Minor updates
Committer: Alice <alice@merveilles.com>
1 files changed, 2 insertions(+), 1 deletions(-)
[master d0ca99b] Quelques précisions dans la doc
1 file changed, 2 insertions(+), 1 deletion(-)
[master 70fcf61] Bug fixed
Committer: Bob <bob.leponge@cartoon.net>
1 files changed, 2 insertions(+), 1 deletions(-)
[master 83dc651] Un titre ajouté
1 file changed, 2 insertions(+)
[master 8f999f1] Conflict fixed
[master 6c99a92] Conflit résolu
<<<<<<< HEAD
Dessus...
Yopla
Mon tellement beau titre !
=======
Yopla
Dessous...
>>>>>>> c70cf6111a19192fed3b7aebd1e0a3e7088b28d0
Mon beau titre (génial) !
>>>>>>> 91bb53f475d2d41c38cfdb6bf0b047a688bd4c3a
remote: Counting objects: 5, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From /var/git/test
55ad751..c70cf61 master -> origin/master
Auto-merging README
CONFLICT (content): Merge conflict in README
Automatic merge failed; fix conflicts and then commit the result.
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 1), reused 3 (delta 1), pack-reused 0 (from 0)
Dépaquetage des objets: 100% (3/3), 335 octets | 335.00 Kio/s, fait.
Depuis github.com:loirotte/coursgit
184008f..91bb53f master -> origin/master
Fusion automatique de README.md
CONFLIT (contenu) : Conflit de fusion dans README.md
La fusion automatique a échoué ; réglez les conflits et validez le résultat.
remote: Counting objects: 5, done.
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From /var/git/test
8f999f1..0455941 master -> origin/master
Auto-merging README
Merge made by recursive.
README | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
remote: Total 3 (delta 1), reused 3 (delta 1), pack-reused 0 (from 0)
Dépaquetage des objets: 100% (3/3), 337 octets | 337.00 Kio/s, fait.
Depuis github.com:loirotte/coursgit
93e0999..d0ca99b master -> origin/master
Fusion automatique de README.md
Merge made by the 'ort' strategy.
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 356 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:dosch/test.git
ff367fc..f20eb85 master -> master
Énumération des objets: 5, fait.
Décompte des objets: 100% (5/5), fait.
Compression par delta en utilisant jusqu'à 12 fils d'exécution
Compression des objets: 100% (2/2), fait.
Écriture des objets: 100% (3/3), 305 octets | 305.00 Kio/s, fait.
Total 3 (delta 1), réutilisés 0 (delta 0), réutilisés du pack 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:loirotte/coursgit.git
8360303..d36979c master -> master
To /var/git/test.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '/var/git/test.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
To github.com:loirotte/coursgit.git
! [rejected] master -> master (fetch first)
error: impossible de pousser des références vers 'github.com:loirotte/coursgit.git'
astuce: Updates were rejected because the remote contains work that you do not
astuce: have locally. This is usually caused by another repository pushing to
astuce: the same ref. If you want to integrate the remote changes, use
astuce: 'git pull' before pushing again.
astuce: See the 'Note about fast-forwards' in 'git push --help' for details.
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6), 533 bytes, done.
Total 6 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.
To /var/git/test.git
c70cf61..8f999f1 master -> master
Énumération des objets: 5, fait.
Décompte des objets: 100% (5/5), fait.
Compression par delta en utilisant jusqu'à 12 fils d'exécution
Compression des objets: 100% (3/3), fait.
Écriture des objets: 100% (3/3), 357 octets | 357.00 Kio/s, fait.
Total 3 (delta 1), réutilisés 0 (delta 0), réutilisés du pack 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:loirotte/coursgit.git
93e0999..d0ca99b master -> master
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (6/6), 592 bytes, done.
Total 6 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.
To /var/git/test.git
0455941..78b618f master -> master
Énumération des objets: 10, fait.
Décompte des objets: 100% (10/10), fait.
Compression par delta en utilisant jusqu'à 12 fils d'exécution
Compression des objets: 100% (6/6), fait.
Écriture des objets: 100% (6/6), 667 octets | 667.00 Kio/s, fait.
Total 6 (delta 2), réutilisés 0 (delta 0), réutilisés du pack 0
remote: Resolving deltas: 100% (2/2), completed with 1 local object.
To github.com:loirotte/coursgit.git
d0ca99b..184008f master -> master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment