This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
2013_2014:lp:idse:gl:td:git [2013/10/05 17:06] blay [Gestion de version] |
2013_2014:lp:idse:gl:td:git [2013/10/11 10:18] (current) blay [Gestion des branches] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Gestion de version ====== | ====== Gestion de version ====== | ||
+ | Apprenez en lisant et en faisant des essais dans votre propre répertoire : | ||
+ | http://git-scm.com/book/fr/Les-bases-de-Git-Enregistrer-des-modifications-dans-le-d%C3%A9p%C3%B4t | ||
+ | Sont particulièrement utiles : | ||
* ''git commit --amend'' : Pour modifier un commit (utile si on a oublié d'associer une tâche par exemple). | * ''git commit --amend'' : Pour modifier un commit (utile si on a oublié d'associer une tâche par exemple). | ||
+ | Par exemple le message : //Test de GIT LPSIX-3 // associe à la tache LPSIX-3 le commit correspondant. | ||
+ | |||
+ | * ''git remote -v'' : pour retrouver l'url du dépôt distant | ||
+ | |||
+ | ===== Gestion des branches ===== | ||
+ | |||
+ | * ''git branch test'' : créer une branche test | ||
+ | * ''git checkout master'' : Pour changer de branche | ||
+ | * ''git merge test'' | ||
* | * | ||
- | http://git-scm.com/book/fr/Les-bases-de-Git-Enregistrer-des-modifications-dans-le-d%C3%A9p%C3%B4t | ||
+ | |||
+ | http://git-scm.com/book/fr/Les-branches-avec-Git-Ce-qu%27est-une-branche | ||
===== Références ===== | ===== Références ===== | ||
+ | http://www.alexgirard.com/git-book/index.html | ||
http://git-scm.com/book/fr/D%C3%A9marrage-rapide-Param%C3%A9trage-%C3%A0-la-premi%C3%A8re-utilisation-de-Git | http://git-scm.com/book/fr/D%C3%A9marrage-rapide-Param%C3%A9trage-%C3%A0-la-premi%C3%A8re-utilisation-de-Git |