2010-08-21 18 views

Répondre

7

git push --mirror <origin> fera correspondre les références de la télécommande à celles du référentiel local, y compris la suppression de branches que vous n'avez pas localement.

De git help push:

--mirror 
    Instead of naming each ref to push, specifies that all refs under 
    refs/ (which includes but is not limited to refs/heads/, 
    refs/remotes/, and refs/tags/) be mirrored to the remote 
    repository. Newly created local refs will be pushed to the remote 
    end, locally updated refs will be force updated on the remote end, 
    and deleted refs will be removed from the remote end. This is the 
    default if the configuration option remote.<remote>.mirror is set.
1

Vous pouvez supprimer des branches poussant à distance mon une branche vide:

$ git push origin :branch-to-delete 
+0

étant donné qu'il y avait plus de 5 branches ... Je me sens de cette façon est inefficace qui est pourquoi je cherche d'autres options. – xenoterracide