git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: stgit: cleaning up after using git branch delete commands

From
Jon Smirl <jonsmirl@gmail.com>
Date
Nov 7, 2007, 16:11 UTC
Message-ID
<9e4733910711070811y72f96a90i4db9acdf93aa765c@mail.gmail.com>
In-Reply-To
<tnxwssuyug1.fsf@pc1117.cambridge.arm.com>
On 11/7/07, Catalin Marinas <catalin.marinas@arm.com> wrote:
Show 12 quoted lines
> "Jon Smirl" <jonsmirl@gmail.com> wrote:
> > I've used git commands to delete several branches that had stgit
> > active on it.  Doing that has left a bunch of clutter in the .git
> > directory. Is there a stgit command to remove all the clutter from
> > branches that no longer exist? I'd like to use the branch names again
> > but the clutter is interfering.
>
> You can create the branch back with GIT and run "stg branch --delete
> --force", though I don't guarantee it will work (BTW, I only recently
> relaxed the branch deletion rules in StGIT so that it doesn't complain
> of missing files and completes the operation, so you should use the
> latest HEAD).
how about a 'stg gc' command that gets rid of all the inaccessible clutter?
>
> --
> Catalin
>
-- 
Jon Smirl
jonsmirl@gmail.com
Previous: Catalin MarinasNext: Karl Hasselström
Message 3 of 5 in “stgit: cleaning up after using git branch delete commands”
  1. Jon SmirlNov 7, 2007
  2. Catalin MarinasNov 7, 2007
  3. Jon SmirlNov 7, 2007
  4. Karl HasselströmNov 8, 2007
  5. Catalin MarinasNov 8, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.