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

Contenu supprimé Contenu ajouté
Ligne 36 :
L'avantage de travailler avec Git sur des dépôts SVN est l'utilisation en local. Dans ce cas :
# Ne pas lancer <code>git pull</code>
# Dans une branche mieux vaut éviter de lancer <code>git-svn dcommit</code> car les soumissions fusionnées ont tendance à embrouiller <code>git-svn</code>. Par contre, combiner les changements avec ceux de Subversion en amont est équivalent à <code>svn update</code> :
 
while in a branch from which you plan to eventually run "git-svn dcommit." Merge commits have a tendency to confuse git-svn,
and you're able to do most anything you'd need without git pull.
 
The most common task that I perform is to combine the change(s) I'm working on with the upstream subversion changes. This is
the equivalent to an "svn update." Here's how its done:
 
<source lang="bash">
git stash # stash any changes so you have a clean tree