> git push origin :foo
OK, so I'm just trying to understand exactly why this works. The colon
is something to do with the refspec, right? So does that command mean:
push null/nothing to the foo branch of the origin, thus deleting it?
Charles
On Mar 6, 9:46 am, "Nic Williams" <
drnicwilli...@gmail.com> wrote:
> Say you have a branch foo on your remote repo 'origin':
>
> git push origin :foo
>
> The colon before the name forces the delete. Weird yes.
>
> On 3/6/08, Charles Roper <
charles.ro...@gmail.com> wrote:
>
>
>
>
>
> > OK, this has me completely stumped. I want to delete a remote branch
> > on github. How do I do this? I just can't find a definitive answer
> > online.
>
> > Here's the precise nature of what I want to do:
>
> > Cygwin made some file mode changes due to a default config option and
> > I pushed these up to my rails2_ebundle branch. I now want to revert
> > these changes and restore the original file modes. I thought the
> > easiest way of doing this would be to dump the rails2_ebundle and
> > start it again but it seems that all paths are paved with mind-bending
> > complexity and I can't work out how to revert or delete the remote
> > branch. Git really is great, but it sure ain't intuitive. :)
>
> --
> Dr Nic Williamshttp://drnicacademy.com- Ruby/Rails training/dev around the worldhttp://drnicwilliams.com- Ruby/Rails/Javascript/Web2.0