...
| Bloc de code |
|---|
|
Cloning into 'esup-uportal'...
remote: Counting objects: 157549, done.
remote: Compressing objects: 100% (42597/42597), done.
remote: Total 157549 (delta 90619), reused 155749 (delta 89147)
Receiving objects: 100% (157549/157549), 129.96 MiB | 1.11 MiB/s, done.
Resolving deltas: 100% (90619/90619), done.
Checking out files: 100% (3263/3263), done |
Pour connaitre la liste des tags disponibles :
| Bloc de code |
|---|
| language | bash |
|---|
| title | Unix & Windows |
|---|
|
git tag |
| Bloc de code |
|---|
|
...
trunk-pre-pluto_1.1
umobile-1.0.0
umobile-1.0.0-RC1
umobile-parent-1.0.0-RC1-SNAPSHOT
umobile-server-1.1-RC1
uportal-3.2.5
uportal-4.0.0
uportal-4.0.0-RC1
uportal-4.0.0-RC2
uportal-4.0.1
uportal-4.0.2
uportal-4.0.3
uportal-4.0.4
uportal-4.0.5
uportal-4.0.6
uportal-4.0.6.SR1
uportal-4.0.7
uportal-4.0.8
uportal-4.0.8-esup-0-avant-presta-1 |
Copiez le nom de la version désirée (afin de ne pas récupérer la version en cours de développement).
Pour récupérer la version choisie :
| Bloc de code |
|---|
| language | bash |
|---|
| title | Unix & Windows |
|---|
|
git checkout <nom_version> |
| Bloc de code |
|---|
|
Note: checking out 'uportal-4.0.8-esup-0-avant-presta-1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 7b39fed... README -> README-JASIG ; README.esup -> README |
Documentation
www.siteduzero.com - git-scm.com
...
www.siteduzero.com - git-scm.com
6 - Commiter des configurations dans sa branche ?Objectif
Sauvegarder Effectuer une modification, sauvegarder (en local, pas sur le serveur) les modifications de configurations effectuées.
Exemple avec une modification du fichier esup.properties :
Commandes
| Bloc de code |
|---|
| language | bash |
|---|
| title | Unix & Windows |
|---|
|
git add <FICHIER1> <FICHIER2><Path>/filters/esup.properties
git commit -m "Changement <MESSAGEPOURQUOIJECOMMIT>de <FICHIER1> <FICHIER2>connecteur" <Path>/filters/esup.properties |
Résultat attendu
| Bloc de code |
|---|
|
[maBrancheent-monuniv a82e27f] MESSAGEPOURQUOIJECOMMITChangement de connecteur
1 file changed, 0 insertions(+), 0 deletions(-)
rewrite FICHIER1 <Path>/filters/esup.properties(78%) |
Documentation
www.siteduzero.com - git-scm.com
...
| Bloc de code |
|---|
|
Already up-to-date.
ou
Les fichiers mis à jour. |
Cette commande permet d'avoir la version la plus à jour du projet.
Pour obtenir une version spécifique de l'application (dernière version stable) :
| Bloc de code |
|---|
| language | bash |
|---|
| title | Unix & Windows |
|---|
|
git tag |
| Bloc de code |
|---|
|
...
trunk-pre-pluto_1.1
umobile-1.0.0
umobile-1.0.0-RC1
umobile-parent-1.0.0-RC1-SNAPSHOT
umobile-server-1.1-RC1
uportal-3.2.5
uportal-4.0.0
uportal-4.0.0-RC1
uportal-4.0.0-RC2
uportal-4.0.1
uportal-4.0.2
uportal-4.0.3
uportal-4.0.4
uportal-4.0.5
uportal-4.0.6
uportal-4.0.6.SR1
uportal-4.0.7
uportal-4.0.8
uportal-4.0.8-esup-0-avant-presta-1 |
Repérer la dernière version stable et copier son nom.
Pour récupérer la version choisie :
| Bloc de code |
|---|
| language | bash |
|---|
| title | Unix & Windows |
|---|
|
git checkout <nom_version> |
| Bloc de code |
|---|
|
Note: checking out 'uportal-4.0.8-esup-0-avant-presta-1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 7b39fed... README -> README-JASIG ; README.esup -> README |
Documentation
www.siteduzero.com
8 - Faire un merge sur
...
un tag EsupPortail (montée de version sans conflit) ?
Objectif
Conserver la configuration malgré la montée de version.
Commandes
Commiter les fichiers modifiés avant de faire le merge.
Se placer dans la branche que l'on souhaite mettre à jour
| Bloc de code |
|---|
| language | bash |
|---|
| title | Unix & Windows |
|---|
|
git checkout maBranche ent-monuniv |
Pour obtenir une liste des tags de l'application :
| Bloc de code |
|---|
| language | bash |
|---|
| title | Unix & Windows |
|---|
|
git tag |
Noter le tag de la version désirée :Récupérer les modifications du dernier tag EsupPortail
| Bloc de code |
|---|
| language | bash |
|---|
| title | Unix & Windows |
|---|
|
git merge master<tag> |
Résultat attendu
| Bloc de code |
|---|
|
Updating c6499c1..a82e27f
Fast-forward
README | Bin 3228 -> 3317 bytes
1 file changed, 0 insertions(+), 0 deletions(-) |
...