GitFlow Portfolio — Workflow Professionnel
Le projet fil rouge : versionner et déployer votre portfolio avec un workflow Git professionnel, de la première initialisation au CI/CD automatisé.
Workflow Git du Projet
Branches, commits et déploiement
text
WORKFLOW GIT PROFESSIONNEL — GitFlow Portfolio
BRANCHES :
──────────
main — Code en production (protégée)
develop — Branche d'intégration
feature/xxx — Nouvelles fonctionnalités
fix/xxx — Corrections de bugs
hotfix/xxx — Corrections urgentes en production
CYCLE DE TRAVAIL :
──────────────────
1. git checkout -b feature/dark-mode — Créer une branche
2. (coder, tester) — Développer la feature
3. git add . && git commit — Commiter régulièrement
4. git push -u origin feature/dark-mode — Pousser sur GitHub
5. Créer une Pull Request — Demander une review
6. Merger dans develop/main — Intégrer le code
7. git branch -d feature/dark-mode — Nettoyer la branche
STRUCTURE DU REPO GITHUB :
──────────────────────────
portfolio/
├── index.html
├── css/style.css
├── js/script.js
├── images/
├── .gitignore — Fichiers à ignorer
├── README.md — Documentation du projet
└── .github/
└── workflows/
└── deploy.yml — CI/CD GitHub Actions
FONCTIONNALITÉS GIT PRATIQUÉES :
────────────────────────────────
✓ init, add, commit, status, log, diff
✓ Branches (branch, checkout, switch, merge)
✓ Résolution de conflits
✓ Remote (push, pull, clone, fetch)
✓ Pull Requests et code review
✓ .gitignore et conventions de commit
✓ GitHub Pages (déploiement)
✓ GitHub Actions (CI/CD)
✓ Fork et contribution open sourceGit Local
- ✓ init, add, commit, status
- ✓ log, diff, show
- ✓ checkout, revert, reset
- ✓ .gitignore et conventions
Branches & Merge
- → Créer et naviguer entre branches
- → Fast-forward vs merge commit
- → Résolution de conflits
- → Stratégies de branching
GitHub & Collaboration
- → Push, pull, clone, fetch
- → Pull Requests et review
- → Fork et contribution open source
- → Issues, labels, milestones
Déploiement & CI/CD
- → GitHub Pages
- → GitHub Actions (workflows)
- → GitFlow vs GitHub Flow
- → README professionnel
Prêt à maîtriser Git ?
Suivez le cours étape par étape pour adopter un workflow Git professionnel
Commencer le Chapitre 0