Introduction à git (avec PhpStorm)
Une brève histoire de git Créé en 2005 par Linus Torvald
Gérer les sources de Linux
A la place de BitKeeper lundi 13 septembre 2010 Introduction à GIT
Pourquoi git ? Développement non-linéaire
Développement distribué
Bonne gestion de gros projets
Rapidité / Scalabilité lundi 13 septembre 2010 Introduction à GIT
Le développement décentralisé Chaque développeur possède l'historique complet du projet
Création de branches locales
Gestion des remotes (« Origin », etc)
Pas besoin de connexion pour commiter lundi 13 septembre 2010 Introduction à GIT
Qu'est-ce qu'un remote ? C'est un dépôt distant
Par exemple « origin »
Ou n'importe quel remote que vous avez ajouté
git remote add pho git://pho-desktop/repo.git
git remote show lundi 13 septembre 2010 Introduction à GIT
Workflow subversion lundi 13 septembre 2010 Introduction à GIT
(Notre) workflow git lundi 13 septembre 2010 Introduction à GIT
Workflow git, 4 étapes Écrire les modifications
Mettre en staging
Commiter
Pusher lundi 13 septembre 2010 Introduction à GIT
Travailler avec des branches ! Pas chère et rapide a créer
Facile à merger
Permet de cloisonner le dev
Merger des remotes dans vos locales
Continuer de travailler sur le master
Etc.
Par exemple: 1 branche par ticket / feature lundi 13 septembre 2010 Introduction à GIT
Travailler avec des branches ! lundi 13 septembre 2010 Introduction à GIT
Branches locales et remotes Une branche locale n'existe que sur votre dépôt
Une branche remote est présente sur un remote lundi 13 septembre 2010 Introduction à GIT
Git par la pratique (avec PHPStorm) Cloner un dépôt
Créer des commits
Pusher des modifications
Puller des modifications
Changer de branche
Merger des branches
Et plus encore ! lundi 13 septembre 2010 Introduction à GIT
Obtenir de l'aide git help command lundi 13 septembre 2010 Introduction à GIT
Avant toute chose git://srv/repo.git lundi 13 septembre 2010 Introduction à GIT
Cloner un dépôt git clone git://srv/repo.git lundi 13 septembre 2010 Introduction à GIT
Cloner un dépôt lundi 13 septembre 2010 Introduction à GIT
Cloner un dépôt lundi 13 septembre 2010 Introduction à GIT
Créer des commits Faire des modifications (vous savez faire normalement)
« Stager » des modifications
Commiter ! lundi 13 septembre 2010 Introduction à GIT
Créer des commits - Staging git status lundi 13 septembre 2010 Introduction à GIT

Reu tech-git-100915100046-phpapp01