|
@@ -0,0 +1,41 @@
|
|
1
|
+1/prendre lien (gitea, github)
|
|
2
|
+
|
|
3
|
+2/ git clone <url>
|
|
4
|
+username : nom utilisateur du compte ciblé
|
|
5
|
+
|
|
6
|
+password : TOKEN LIE AU COMPTE GIT
|
|
7
|
+mon token par exemple (git_test) : 8b6380197c4e7afc0f4e1115d45d81c961644f79
|
|
8
|
+
|
|
9
|
+//
|
|
10
|
+commit :
|
|
11
|
+git checkout <nombranche>
|
|
12
|
+(creation branche : git branch <nombranche>)
|
|
13
|
+(ajouter modif : git add <fichier modifié> si on met un point (.) ça sélectionne tout)
|
|
14
|
+(consulter modif : git diff)
|
|
15
|
+git commit (ajouter titre explicite pas trop long + détails)
|
|
16
|
+
|
|
17
|
+historique des commit : git log
|
|
18
|
+//de façon la plus locale, chez soi
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+//
|
|
22
|
+git push
|
|
23
|
+//pour étendre à d'autres
|
|
24
|
+
|
|
25
|
+possibilité de fork
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+-> Pull Request : incorporer mes changements à l'origine (demande et au proprio de merge ou non)
|
|
29
|
+
|
|
30
|
+repository cible + branche cible + repo modif + branche modif
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+étapes importantes :
|
|
35
|
+
|
|
36
|
+touch <fichier>
|
|
37
|
+git init
|
|
38
|
+git add <fichier>
|
|
39
|
+git commit -m "first commit"
|
|
40
|
+git remote add origin <lien gitetud>
|
|
41
|
+git push -u origin master
|