-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.html
54 lines (51 loc) · 1.64 KB
/
git.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<title>git.html</title>
</head>
<body>
<table>
<tr>
<th>Commande</th>
<th>Description</th>
</tr>
<tr>
<td>$ git init [nom-du-projet]</td>
<td>Crée un dépôt local à partir du nom spécifié</td>
</tr>
<tr>
<td>$ git clone [url]</td>
<td>Télécharge un projet et tout son historique de versions</td>
</tr>
<tr>
<td>$ git add [fichier]</td>
<td>Ajoute un instantané du fichier, en préparation pour le suivi de version</td>
</tr>
<tr>
<td>$ git commit -m "[message descriptif]"</td>
<td>Enregistre des instantanés de fichiers de façon permanente dans
l'historique des versions</td>
</tr>
<tr>
<td>$ git branch</td>
<td>Liste toutes les branches locales dans le dépôt courant</td>
</tr>
<tr>
<td>$ git branch [nom-de-branche]</td>
<td>Crée une nouvelle branche</td>
</tr>
<tr>
<td>$ git checkout [nom-de-branche]</td>
<td>Bascule sur la branche spécifiée et met à jour le répertoire de travail</td>
</tr>
<tr>
<td>$ git merge [nom-de-branche]</td>
<td>Combine dans la branche courante l'historique de la branche spécifiée</td>
</tr>
<tr>
<td>$ git branch -d [nom-de-branche]</td>
<td>Supprime la branche spécifiée</td>
</tr>
</table>
</body>
</html>