-
Notifications
You must be signed in to change notification settings - Fork 0
Git rebase workflow
Nicolas Aubert edited this page Nov 21, 2022
·
1 revision
Voici un résumé des commandes utilisé avec git.
| Situation | Commandes | |
|---|---|---|
| 1 | Mettre à jour une branche du repo | $ git checkout [branche repo] $ git pull --rebase |
| 2 | Créer une nouvelle branche locale | $ git checkout -b newBranch |
| 3 | Ajouter ses modifications sur le dessus d'une branche du repo |
$ git add [fichiers modifiés] $ git commit -m "commentaire" $ git checkout [branche repo] $ git pull –rebase $ git checkout [branche locale] $ git rebase [branche repo] |
| 4 | Fusionner ses modifications et les pousser sur le repo |
$ git checkout [branche repo] $ git merge –ff-only [branche locale] $ git push origin [branche repo] |
| 5 | Effacer sa branche locale | $ git branch -d [branche locale] |