Défi : Veille

Question

Reprenez votre dépôt et executez les commandes suivantes. Que font-elles ? Fusionnez les deux branches

1
git checkout alice
2
touch alicefile.txt
3
git add alicefile.txt
4
git commit -m "Create file for alice"
5
git checkout bob
6
touch bobfile.txt
7
git add bobfile.txt
8
git commit -m "Create file for bob"

Indice

Vous êtes encore dans la branche de bob, pour fusionner la branche de Alice dans celle de Bob, il faut utiliser git merge

Solution

1
git merge alice