Git: démo plus complète
This commit is contained in:
parent
f90d21ac58
commit
0b93913185
|
@ -249,16 +249,12 @@ Note : mentionner l'existence de savelog. L'option "-d" de savelog permet d'util
|
||||||
<li>intégré aux éditeurs…</li>
|
<li>intégré aux éditeurs…</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
|
||||||
<h3>Aller plus loin</h3>
|
|
||||||
<p>Le livre <strong>Pro Git</strong> est incontournable,<br>pour le débutant comme pour l'expert.</p>
|
|
||||||
<p>https://git-scm.com/book/fr/v2</p>
|
|
||||||
</section>
|
|
||||||
<section>
|
<section>
|
||||||
<h3>En pratique /etc/.git</h3>
|
<h3>En pratique /etc/.git</h3>
|
||||||
<p>Une <em>bonne pratique</em> Evolix depuis 1337.</p>
|
<p>Une <em>bonne pratique</em> Evolix.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
|
<h4>Initialisation du dépôt</h4>
|
||||||
<pre><code>
|
<pre><code>
|
||||||
$ su
|
$ su
|
||||||
# cd /etc
|
# cd /etc
|
||||||
|
@ -268,6 +264,22 @@ Note : mentionner l'existence de savelog. L'option "-d" de savelog permet d'util
|
||||||
# git commit -m "commit initial"
|
# git commit -m "commit initial"
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</section>
|
</section>
|
||||||
|
<section>
|
||||||
|
<h4>Premières modifications</h4>
|
||||||
|
<pre><code>
|
||||||
|
# echo "127.0.0.1 foo" >> /etc/hosts
|
||||||
|
# git status
|
||||||
|
# git diff [HEAD]
|
||||||
|
# git commit --all --message "Ajout de foo dans /etc/hosts"
|
||||||
|
# git log
|
||||||
|
# git show
|
||||||
|
</code></pre>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h3>Aller plus loin</h3>
|
||||||
|
<p>Le livre <strong>Pro Git</strong> est incontournable,<br>pour le débutant comme pour l'expert.</p>
|
||||||
|
<p><a href="https://git-scm.com/book/fr/v2">git-scm.com/book/fr/v2</a></p>
|
||||||
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
Loading…
Reference in a new issue