Files
Gestion_sondes/tools/Maj_develop_sur_product
2025-04-18 11:49:20 +02:00

46 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
✅ Objectif : mettre à jour domo91.py de product avec la version de develop
🧭 Étapes simples à suivre :
1. Assure-toi dêtre sur la branche product
git checkout product
2. Récupère seulement le fichier domo91.py depuis develop
git checkout develop -- domo91.py
💡 Cette commande signifie :
"Depuis la branche develop, prends juste le fichier domo91.py et applique-le sur la branche actuelle (product)".
3. Vérifie le changement
git status
Tu devrais voir :
modified: domo91.py
4. Commit et push la mise à jour
git commit -am "MAJ de domo91.py depuis develop"
git push origin product
✅ Résultat :
Seul le fichier domo91.py est mis à jour sur product
Tu ne touches ni aux autres fichiers, ni à lhistorique Git
Tu peux le faire à chaque fois que tu veux "promouvoir" un seul fichier vers la version stable
a arranger
(.venv) PS C:\Users\miche\PycharmProjects\Gestion sondes> git status
On branch product
Your branch is up to date with 'origin/product'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: domo91.py
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .idea/workspace.xml