-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path08-branches.html
37 lines (31 loc) · 1.26 KB
/
08-branches.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<section id="branches">
<section>
<h2>Branches</h2>
</section>
<section>
<h3>Branches</h3>
<img src="assets/images/git-branch.png" alt="Git Branches">
</section>
<section>
<h3>Branches</h3>
<p>La commande suivante permet d’afficher la liste des branches disponibles sur un dépôt git :</p>
<pre><code class="language-bash">git branch</code></pre>
</section>
<section>
<h3>Branches</h3>
<p>Vous pouvez créer une nouvelle branche sur votre dépôt git et vous positionner sur cette nouvelle branche :</p>
<pre><code class="language-bash">git branch develop
git checkout develop</code></pre>
<p>Ou plus simplement :</p>
<pre><code class="language-bash">git checkout -b develop</code></pre>
<footer>
<a href="#" class="info" style="font-size: 0.9em">git branch -d develop permettra de supprimer la branche develop</a>
</footer>
</section>
<section>
<h3>Branches</h3>
<p>Une fois que vous êtes satisfait des modifications apportées sur une branche, vous pouvez effectuer une opération de fusion :</p>
<pre><code class="language-bash">git checkout master
git merge develop</code></pre>
</section>
</section>