Introduction à GIT,
nouvel outil indispensable
GIT : Système de contrôle de version

          • Outil open source
          • Permet de figer le code et de
            retourner à un état précédent
          • Dépôt décentralisé
          • Rapide, efficace
          • Alternatives : CVS, SVN, Bazaar,
            Mercurial…
GIT : Système distribué


    • 95% déconnecté
    • Duplication facile
    • Workflow avancés
GIT : Commandes de base
 add             merge
 bisect          mv
 branch          pull
 checkout        push
 clone           rebase
 commit          remote
 diff            reset
 fetch           rm
 grep            show
 init            status
 log             tag
GIT : Commandes de base
 add             merge
 bisect          mv
 branch          pull
 checkout        push
 clone           rebase
 commit          remote
 diff            reset
 fetch           rm
 grep            show
 init            status
 log             tag
git branch –a experiment
pull = fetch + merge
GIT et Drupal
  • Pourquoi migrer ?
       – Simplicité d’utilisation
       – Décentralisé
       – Syntaxe moins laborieuse

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d view

                                           VS                                    +40 car
git clone ssh://careernerd@git.drupal.org/project/views.git


   • Apparition des sandbox
Outils GIT
• Interface
  – gitk, git-gui
• Forges
  – Gitorious > http://gitorious.org/
  – github > https://github.com/
• Gitweb
  – https://git.wiki.kernel.org/index.php/Gitweb
• Gitolite
  – https://github.com/sitaramc/gitolite#start
Ressources
• FR - http://fr.whygitisbetterthanx.com/
• FR - http://www.siteduzero.com/tutoriel-3-
  254198-gerez-vos-codes-source-avec-git.html
• EN - http://www.slideshare.net/chacon/git-
  101-presentation
Merci !       Twitter : @Artusamak
Questions ?

Drupalcamp Nantes - Présentation GIT

  • 1.
    Introduction à GIT, nouveloutil indispensable
  • 2.
    GIT : Systèmede contrôle de version • Outil open source • Permet de figer le code et de retourner à un état précédent • Dépôt décentralisé • Rapide, efficace • Alternatives : CVS, SVN, Bazaar, Mercurial…
  • 3.
    GIT : Systèmedistribué • 95% déconnecté • Duplication facile • Workflow avancés
  • 4.
    GIT : Commandesde base add merge bisect mv branch pull checkout push clone rebase commit remote diff reset fetch rm grep show init status log tag
  • 5.
    GIT : Commandesde base add merge bisect mv branch pull checkout push clone rebase commit remote diff reset fetch rm grep show init status log tag
  • 14.
    git branch –aexperiment
  • 16.
    pull = fetch+ merge
  • 17.
    GIT et Drupal • Pourquoi migrer ? – Simplicité d’utilisation – Décentralisé – Syntaxe moins laborieuse cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d view VS +40 car git clone ssh://careernerd@git.drupal.org/project/views.git • Apparition des sandbox
  • 18.
    Outils GIT • Interface – gitk, git-gui • Forges – Gitorious > http://gitorious.org/ – github > https://github.com/ • Gitweb – https://git.wiki.kernel.org/index.php/Gitweb • Gitolite – https://github.com/sitaramc/gitolite#start
  • 19.
    Ressources • FR -http://fr.whygitisbetterthanx.com/ • FR - http://www.siteduzero.com/tutoriel-3- 254198-gerez-vos-codes-source-avec-git.html • EN - http://www.slideshare.net/chacon/git- 101-presentation
  • 20.
    Merci ! Twitter : @Artusamak Questions ?