you can use
git push <remote> <branch_local>:<branch_remote>
that push in <remote> your local branch <branch_local> into the remote
if you want to delete a branch in <remote>, you can do this:
git push <remote> :< branch_remote >
it's like to say: "please, copy nothing from my local to <branch_remote >",
and voila, deleted
2012/11/26 William Mizuta <william.miz...@gmail.com>
> I think that git branch -rD only deletes the local reference to remote
> If you want to delete the branch in your remote repository, for example
> PWB1, type git push origin :PWB1
> William Seiti Mizuta
> Desenvolvedor da Caelum
> On Mon, Nov 26, 2012 at 1:06 PM, Jeffrey Marans <jmar...@gmail.com> wrote:
>> I've done a cvs2git conversion of a number of cvs modules and was unable
>> to exclude the private working branches, PWB*.
>> I'd like to delete them from the git repos and have tried the following,
>> but the branches live on regardless of the output messages.
>> By that I mean if I clone another instance of test, the branches still
>> show up on the origin server.
>> mkdir test
>> cd test
>> git clone git@git:/git/gitroot/oacis/test
>> cd test
>> git branch -r | grep PWB
>> for i in `git branch -r | grep PWB`;do git branch -rD $i;done
>> Deleted remote branch origin/PWB1 (was 4e34650).
>> Deleted remote branch origin/PWB10 (was 2992912).
>> Deleted remote branch origin/PWB2 (was b9126e8).
>> Deleted remote branch origin/PWB3 (was e48d2d1).
>> Deleted remote branch origin/PWB4 (was 32c90f3).
>> Deleted remote branch origin/PWB5 (was 234f826).
>> Deleted remote branch origin/PWB6 (was 72409ca).
>> Deleted remote branch origin/PWB7 (was 234f826).
>> Deleted remote branch origin/PWB8 (was e30b526).
>> Deleted remote branch origin/PWB9 (was a8ab921).