You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
par <ahref="http://www.rogerdudler.com">Roger Dudler</a>
30
-
<br/><!-- UNTRANSLATED -->Credits to<ahref="http://www.twitter.com/tfnico">@tfnico</a> et <ahref="http://www.twitter.com/fhd">@fhd</a>
30
+
<br/>Remerciements à<ahref="http://www.twitter.com/tfnico">@tfnico</a> et <ahref="http://www.twitter.com/fhd">@fhd</a>
31
31
</p>
32
32
<imgsrc="img/arrow.png" alt="" />
33
33
</div>
@@ -53,7 +53,7 @@ <h2>créer un nouveau dépôt</h2>
53
53
</div>
54
54
<aname="checkout"></a>
55
55
<divclass="scrollblock block-checkout">
56
-
<h2>mettre à jour un dépôt</h2>
56
+
<h2>cloner un dépôt</h2>
57
57
<p>
58
58
créez une copie de votre dépôt local en exécutant la commande<br/>
59
59
<code>git clone /path/to/repository</code><br/>
@@ -81,7 +81,7 @@ <h2>ajouter & valider</h2>
81
81
<code>git add *</code><br/>
82
82
C'est la première étape dans un workflow git basique. Pour valider ces changements, utilisez<br/>
83
83
<code>git commit -m "Message de commit"</code><br/>
84
-
Le fichier est donc ajouté à le<b>HEAD</b>, mais pas encore dans votre dépôt distant.
84
+
Le fichier est donc ajouté au<b>HEAD</b>, mais pas encore dans votre dépôt distant.
85
85
</p>
86
86
</div>
87
87
<aname="push"></a>
@@ -120,64 +120,64 @@ <h2>branches</h2>
120
120
</div>
121
121
<aname="update"></a>
122
122
<divclass="scrollblock block-merging">
123
-
<h2>update & merge</h2>
123
+
<h2>mettre à jour & fusionner</h2>
124
124
<p>
125
-
to update your local repository to the newest commit, execute <br/>
125
+
pour mettre à jour votre dépôt local vers les dernières validations, exécutez la commande<br/>
126
126
<code>git pull</code><br/>
127
-
in your working directory to <i>fetch</i>and<i>merge</i>remote changes.<br/>
128
-
to merge another branch into your active branch (e.g. master), use<br/>
127
+
dans votre espace de travail pour <i>récupérer</i>et<i>fusionner</i>les changements distants.<br/>
128
+
pour fusionner une autre branche avec la branche active (par exemple master), utilisez<br/>
129
129
<code>git merge <branch></code><br/>
130
-
in both cases git tries to auto-merge changes. Unfortunately, this is not always possible and results in <i>conflicts</i>.
131
-
You are responsible to merge those <i>conflicts</i>
132
-
manually by editing the files shown by git. After changing, you need to mark them as merged with<br/>
130
+
dans les deux cas, git tentre d'auto-fusionner les changements. Malheureusement, ça n'est pas toujours possible et résulte par des <i>conflits</i>.
131
+
Vous devez alors régler ces <i>conflits</i>
132
+
manuellement en éditant les fichiers indiqués par git. Après l'avoir fait, vous devez les marquer comme fusionnés avec<br/>
133
133
<code>git add <filename></code><br/>
134
-
before merging changes, you can also preview them by using<br/>
134
+
après avoir fusionné les changements, vous pouvez en avoir un aperçu en utilisant<br/>
it's recommended to create tags for software releases. this is a known concept, which also exists in SVN. You can create a new tag named<i>1.0.0</i>by executing<br/>
142
+
il est recommandé de créer des tags pour les releases de programmes. c'est un concept connu, qui existe aussi dans SVN. Vous pouvez créer un tag nommé<i>1.0.0</i>en exécutant la commande<br/>
143
143
<code>git tag 1.0.0 1b2e1d63ff</code><br/>
144
-
the <i>1b2e1d63ff</i>stands for the first 10 characters of the commit id you want to reference with your tag. You can get the commit id with<br/>
144
+
le <i>1b2e1d63ff</i>désigne les 10 premiers caractères de l'identifiant du changement que vous voulez référencer avec ce tag. Vous pouvez obtenir cet identifiant avec<br/>
145
145
<code>git log</code><br/>
146
-
you can also use less characters of the commit id, it just has to be unique.
146
+
vous pouvez utiliser moins de caractères de cet identifiant, il doit juste rester unique.
147
147
</p>
148
148
</div>
149
149
<aname="checkout-replace"></a>
150
150
<divclass="scrollblock block-checkout-replace">
151
-
<h2>replace local changes</h2>
151
+
<h2>remplacer les changements locaux</h2>
152
152
<p>
153
-
In case you did something wrong (which for sure never happens ;) you can replace local changes using the command<br/>
153
+
Dans le cas où vous auriez fait quelque chose de travers (ce qui bien entendu n'arrive jamais ;) vous pouvez annuler les changements locaux en utilisant cette commande<br/>
this replaces the changes in your working tree with the last content in HEAD. Changes already added to the index, as well as new files, will be kept.
155
+
cela remplacera les changements dans votre arbre de travail avec le dernier contenu du HEAD. Les changements déjà ajoutés à l'index, aussi bien les nouveaux fichiers, seront gardés.
156
156
</p>
157
157
<p>
158
-
If you instead want to drop all your local changes and commits, fetch the latest history from the server and point your local master branch at it like this<br/>
158
+
Si à la place vous voulez supprimer tous les changements et validations locaux, récupérez le dernier historique depuis le serveur et pointez la branche principale locale dessus comme ceci<br/>
159
159
<code>git fetch origin</code><br/>
160
160
<code>git reset --hard origin/master</code>
161
161
</p>
162
162
</div>
163
163
<aname="hints"></a>
164
164
<divclass="scrollblock block-hints">
165
-
<h2>useful hints</h2>
165
+
<h2>conseils utiles</h2>
166
166
<p>
167
-
built-in git GUI<br/>
167
+
Interface git incluse<br/>
168
168
<code>gitk</code><br/>
169
-
use colorful git output<br/>
169
+
utiliser des couleurs dans la sortie de git<br/>
170
170
<code>git config color.ui</code><br/>
171
-
show log on just one line per commit<br/>
171
+
afficher le journal sur une seule ligne pour chaque validation<br/>
0 commit comments