If you can't read please download the document
Upload
pmsipilot
View
2.709
Download
2
Embed Size (px)
Citation preview
Diapositive 1
Introduction git (avec PhpStorm)
lundi 13 septembre 2010Introduction GIT
Une brve histoire de git
Cr en 2005 par Linus Torvald
Grer les sources de Linux
A la place de BitKeeper
lundi 13 septembre 2010Introduction GIT
Pourquoi git ?
Dveloppement non-linaire
Dveloppement distribu
Bonne gestion de gros projets
Rapidit / Scalabilit
Le dveloppement dcentralis
Chaque dveloppeur possde l'historique complet du projet
Cration de branches locales
Gestion des remotes (Origin, etc)
Pas besoin de connexion pour commiter
lundi 13 septembre 2010Introduction GIT
Qu'est-ce qu'un remote ?
C'est un dpt 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 2010Introduction GIT
Workflow subversion
lundi 13 septembre 2010Introduction GIT
(Notre) workflow git
lundi 13 septembre 2010Introduction GIT
Workflow git, 4 tapes
crire les modifications
Mettre en staging
Commiter
Pusher
lundi 13 septembre 2010Introduction GIT
Travailler avec des branches !
Pas chre et rapide a crer
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 2010Introduction GIT
Travailler avec des branches !
lundi 13 septembre 2010Introduction GIT
Branches locales et remotes
Une branche locale n'existe que sur votre dpt
Une branche remote est prsente sur un remote
lundi 13 septembre 2010Introduction GIT
Git par la pratique (avec PHPStorm)
Cloner un dpt
Crer des commits
Pusher des modifications
Puller des modifications
Changer de branche
Merger des branches
Et plus encore !
lundi 13 septembre 2010Introduction GIT
Obtenir de l'aide
git help command
lundi 13 septembre 2010Introduction GIT
Avant toute chose
git://srv/repo.git
lundi 13 septembre 2010Introduction GIT
Cloner un dpt
git clone git://srv/repo.git
lundi 13 septembre 2010Introduction GIT
Cloner un dpt
lundi 13 septembre 2010Introduction GIT
Cloner un dpt
lundi 13 septembre 2010Introduction GIT
Crer des commits
Faire des modifications (vous savez faire normalement)
Stager des modifications
Commiter !
lundi 13 septembre 2010Introduction GIT
Crer des commits - Staging
git status
lundi 13 septembre 2010Introduction GIT
Crer des commits - Staging
lundi 13 septembre 2010Introduction GIT
Crer des commits - Staging
git add web/portail_dev.php
lundi 13 septembre 2010Introduction GIT
Crer des commits - Commiter
git commit -m hello world !
lundi 13 septembre 2010Introduction GIT
Crer des commits - PhpStorm
lundi 13 septembre 2010Introduction GIT
Crer des commits - PhpStorm
lundi 13 septembre 2010Introduction GIT
Pusher des modifications
git push
lundi 13 septembre 2010Introduction GIT
Pusher des modifications
lundi 13 septembre 2010Introduction GIT
Pusher des modifications
lundi 13 septembre 2010Introduction GIT
Pusher des modifications
lundi 13 septembre 2010Introduction GIT
Puller des modifications
git pull
lundi 13 septembre 2010Introduction GIT
Puller des modifications
git fetchgit merge
lundi 13 septembre 2010Introduction GIT
Puller des modifications
lundi 13 septembre 2010Introduction GIT
Puller des modifications
lundi 13 septembre 2010Introduction GIT
Changer de branche
git checkout [-b] foobar
lundi 13 septembre 2010Introduction GIT
Changer de branche
lundi 13 septembre 2010Introduction GIT
Changer de branche
lundi 13 septembre 2010Introduction GIT
Changer de branche
lundi 13 septembre 2010Introduction GIT
Merger des branches
git checkout mastergit merge foobar
lundi 13 septembre 2010Introduction GIT
Merger des branches
lundi 13 septembre 2010Introduction GIT
Merger des branches
lundi 13 septembre 2010Introduction GIT
Merger des branches
lundi 13 septembre 2010Introduction GIT
La commande stash
git stashgit unstash
lundi 13 septembre 2010Introduction GIT
Le staging interactif
git add -i
lundi 13 septembre 2010Introduction GIT
Le staging interactif
lundi 13 septembre 2010Introduction GIT
Le staging interactif
lundi 13 septembre 2010Introduction GIT
Le staging interactif
lundi 13 septembre 2010Introduction GIT
Le staging interactif
lundi 13 septembre 2010Introduction GIT
Ressources
lundi 13 septembre 2010Introduction GIT
Ressources
http://git-scm.com/
http://book.git-scm.com/
http://progit.org/book/
lundi 13 septembre 2010Introduction GIT
Questions ?
lundi 13 septembre 2010Introduction GIT
lundi 13 septembre 2010
Titre de la prsentation
/Nb diapos
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation
lundi 13 septembre 2010
Titre de la prsentation