# Deleting branches in cogito

2 messages from 2007-01-05 to 2007-01-09. Participants: Jonathan Trites, Jeff King.
Thread: https://gitlist.dev/t/6232

## Jonathan Trites, 2007-01-05 10:29

Subject: Deleting branches in cogito
Message-ID: <11935db10701050229h215416afk9ac2008c4f176b36@mail.gmail.com>
URL: https://gitlist.dev/e/11935db10701050229h215416afk9ac2008c4f176b36%40mail.gmail.com

```
Forgive my brain damage, but how does one go about deleting branches
in cogito? I've been up and down google and the mailing lists and I
can't find any mention of how one does this.

I see there are commands cg-switch, cg-branch-add, cg-branch-chg, and
cg-branch-ls, but nowhere do I see a "cg-branch-rm" command or
equivalent cg-switch command line option.

In the git commands I see "git-branch -d", and maybe this is the
command I am looking for, but is there a "native" cogito command to
delete branches?

```

## Jeff King, 2007-01-09 15:16

Subject: Re: Deleting branches in cogito
Message-ID: <20070109151611.GD10633@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20070109151611.GD10633%40coredump.intra.peff.net
In-Reply-To: <11935db10701050229h215416afk9ac2008c4f176b36@mail.gmail.com>

```
On Fri, Jan 05, 2007 at 04:29:59AM -0600, Jonathan Trites wrote:

> Forgive my brain damage, but how does one go about deleting branches
> in cogito? I've been up and down google and the mailing lists and I
> can't find any mention of how one does this.

I haven't used cogito in a while, but IIRC, there isn't an automated way
to do it. You can always
  rm .git/branches/branch_name
Or did you mean a local branch (see below)?

> I see there are commands cg-switch, cg-branch-add, cg-branch-chg, and
> cg-branch-ls, but nowhere do I see a "cg-branch-rm" command or
> equivalent cg-switch command line option.

cg-switch works on local branches ('branches' in git, or 'heads', or
lines of development). Cogito remote branches (just 'branches' in
cogito, similar to 'remotes' in git) are handled by cg-branch-*.

For remote branches, see above.  If you want to delete a head or line of
development in cogito, I think you will need to use git-branch -d.

Hope that answers your question.

-Peff

```
