« Git/Travailler avec Git local et un dépôt Subversion distant » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 80 :
</source>
 
Deux choix sont ensuite possibles, effectuer directement les changements sur la branche locale, ce qui est plus rapide que de les soumettre à la branche distante avant de les récupérer dans la locale. Ensuite il est possible d'utiliser <code>git reset</code><ref>http://www.kernel.org/pub/software/scm/git/docs/git-reset.html</code> pour les retirer de la branche distante.
As the example code implies, you'll still spend most of your time with "foo" checked out, rather than "foo-local." If you
decide on a new change that you want to keep locally, you're again faced with two choices. You can checkout "foo-local" and make
the commit, or you can make the commit on "foo" and then cherry-pick the commit from foo-local. You would then want to use
[http://www.kernel.org/pub/software/scm/git/docs/git-reset.html git-reset] to remove the commit from "foo".
 
As an alterative to the rebase-centric approach, there is a merge-based method. You still keep your local changes on a