Parcourir la source

debut de premier dessin

Julien Dehos il y a 8 ans
Parent
commit
6adc91a5ee
3 fichiers modifiés avec 125 ajouts et 7 suppressions
  1. 24 0
      concepts_commits.svg
  2. 24 0
      concepts_depots.svg
  3. 77 7
      index.md

+ 24 - 0
concepts_commits.svg

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<svg xmlns="http://www.w3.org/2000/svg" width="600" height="300" >
+
+            <circle cx="100" cy="100" r="30" stroke="black" stroke-width="3" fill="lightgreen"  />
+            <text x="95" y="105" font-size="18"> 1 </text>
+
+            <circle cx="300" cy="100" r="30" stroke="black" stroke-width="3" fill="lightgreen"  />
+            <text x="295" y="105" font-size="18"> 4 </text>
+
+            <circle cx="500" cy="100" r="30" stroke="black" stroke-width="3" fill="lightgreen"  />
+            <text x="495" y="105" font-size="18"> 6 </text>
+
+            <defs>
+              <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>
+                <path d='M0,0 V6 L3,3 Z' />
+              </marker>
+            </defs>
+
+            <path marker-end='url(#head)' stroke-width='3' fill='none' stroke='black'  d=' M140,50 C250,20 350,20 450,120' />
+            <path marker-end='url(#head)' stroke-width='3' fill='none' stroke='black'  d=' M140,100 L250,100 ' />
+
+</svg>
+

+ 24 - 0
concepts_depots.svg

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<svg xmlns="http://www.w3.org/2000/svg" width="600" height="300" >
+
+            <circle cx="100" cy="100" r="30" stroke="black" stroke-width="3" fill="lightgreen"  />
+            <text x="95" y="105" font-size="18"> 1 </text>
+
+            <circle cx="300" cy="100" r="30" stroke="black" stroke-width="3" fill="lightgreen"  />
+            <text x="295" y="105" font-size="18"> 4 </text>
+
+            <circle cx="500" cy="100" r="30" stroke="black" stroke-width="3" fill="lightgreen"  />
+            <text x="495" y="105" font-size="18"> 6 </text>
+
+            <defs>
+              <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>
+                <path d='M0,0 V6 L3,3 Z' />
+              </marker>
+            </defs>
+
+            <path marker-end='url(#head)' stroke-width='3' fill='none' stroke='black'  d=' M140,50 C250,20 350,20 450,120' />
+            <path marker-end='url(#head)' stroke-width='3' fill='none' stroke='black'  d=' M140,100 L250,100 ' />
+
+</svg>
+

+ 77 - 7
index.md

@@ -8,51 +8,121 @@ output:
 
 ## Introduction
 
-git + serveur scosi
+### À qui s'adresse ce tutoriel ?
+- Objectif du tutoriel : apprendre à utiliser le logiciel git et le serveur
+  gogs mis en place par le SCOSI. 
+- Pré-requis : utilisation basique d'un ordinateur.
+- Public visé : les développeurs au sens large (code latex, python, matlab, R,
+  java...)
 
-[http://git-scm.com](http://git-scm.com)
+### Qu'est-ce-que git et gogs ?
+- git : logiciel de journalisation de code source décentralisé (alternative à
+  mercurial, subversion, CVS...)
+- gogs : service d'hébergement de code source utilisable avec git (alternative
+  à github, bitbucket...)
+
+### Qu'est-ce-que git et gogs peuvent m'apporter ?
+- journalisation :
+- sauvegarde distante :
+- synchronisation :
+- travail en équipe :
+- projets publics ou privés : 
+
+### Concepts de base
+
+commit, branche
+
+![](concepts_commits.svg)
 
 
+depot local / distant
+
+![](concepts_depots.svg)
+
 
 * * * * *
 
 ## Installation et configuration
 
-### Linux
+### Installation sous Linux
 
 ```
 sudo apt-get install git
 ```
 
+interface graphique 
+qgit
+
+
+### Installation sous Windows
 
-### Windows
+[http://git-scm.com](http://git-scm.com)
 
 
+### Configuration
 
+```
+git config --global user.name <name>
+```
+
+```
+git config --global user.email <email>
+```
+
+
+### Exercice
 
 * * * * *
 
-## Dépôt local (journaliser son projet)
+## Dépôt local (journaliser mon projet)
 
 init
-clone
 .git
+status
+add
+commit
+log
+clone
+
+head
+
+.gitignore
+
+conseil sur les fichiers générés et les fichiers de données
 
 
 ### Exercice
 
 * * * * *
 
-## Dépôt distant (sauvegarder son projet sur un serveur)
+## Dépôt distant (sauvegarder mon projet sur un serveur)
+
+nouveau projet
+
+projet existant
+
+### Exercice
 
 * * * * *
 
 ## Branches (travailler en équipe)
 
+### Exercice
+
 * * * * *
 
 ## Forks (collaborer avec d'autres projets)
 
+### Exercice
+
+* * * * *
+
+## Références
+
+https://www.atlassian.com/git/tutorials/
+
+http://git-scm.com/book/en/v2
+
 * * * * *
 
 Dernière mise à jour : 2016-03-05