-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (57 loc) · 2.51 KB
/
index.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
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First HTML Page</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>MA PAGE D'EXERCICE GIT/GITHUB</h1>
<p>Exercice GIT & GITHUB</p>
<ul>
<li>Étape 1 : Ton premier "repository"</li>
<br>
<li>Étape 2 : Faire des changements importants ou non</li>
<p>Comment ferais-tu pour ajouter ces changements sur Git,
sauvegarder ces changements et les synchroniser sur ton repository Github ?</p>
<p>Voici les étapes à suivre :</p>
<br>
<p>1. git add index.html</p>
<br>
<p>2. git commit -m "Add index.html" ou directement sur VSCode dans Source Control</p>
<br>
<p>3. git push</p>
<br>
<li>Étape 3 : Toi + moi + git</li>
<p>Traduis avec tes mots ce message d’erreur.
Quelle commande dois-tu exécuter pour résoudre cette erreur ?</p>
<br>
<p>To github.com:fatydm/appendreGit.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'github.com:fatydm/appendreGit.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.</p>
<br>
<p>Les modifications ont été fait depuis Github et non en local. On doit Git pull.</p>
<br>
<p>4. Traduis avec tes mots ce message d’erreur.
Quelles prochaines actions dois-tu faire ?</p>
<p>Auto-merging index.html
CONFLICT (content): Merge conflict in index.html
Automatic merge failed; fix conflicts and then commit the result.</p>
<br>
<p>Il y a un conflit d'intérêt entre les deux documents.
L'ordinateur ne sait pas ce qu'il doit enregistrer. On doit Faire :
<br>
<li>git config pull rebase false </li>
<lil>git pull</lil>
<li>git commit</li>
<li>git push</li>
</p>
</ul>
</body>
</html>