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

Re: Simple questions on GIT usage.

From
Andreas Ericsson <ae@op5.se>
Date
Nov 14, 2005, 16:08 UTC
Message-ID
<4378B687.3060701@op5.se>
In-Reply-To
<cda58cb80511140746w2f691fb8y@mail.gmail.com>
Franck wrote:
Show 5 quoted lines
> Hi,
> 
> I'd like to know how to delete an entire branch and all it's related
> objects. Is the following correct to accomplish that ?
> 
man git-branch
It will tell you about its -d and -D options.
> 
> And a second question is: how to get the tree ID of the working
> repository ?

I get a feeling there's a higher-level question behind this one, like "How can I get a diff between an updated (but not committed) index and the files in the working directory?"

When you have a problem it's usually better to just tell people what sort of end-result you're hoping to achieve and what steps you've taken to accomplish it so far. Asking for details about something that might be wrong thinking from the start won't help you but will still require much of our time to answer. I.e. nobody gains anything but the work still has to be done.

Incidentally, the answer to the quoted question above is (usually)
	git diff-index -p HEAD

Otherwise; man git (and look in the "IDENTIFIER TERMINOLOGY". I wish I had).

and
for i in /usr/bin/git-*tree*; do man ${i##*/}; done
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: FranckNext: Randal L. Schwartz
Message 2 of 5 in “Simple questions on GIT usage.”
  1. FranckNov 14, 2005
  2. Andreas EricssonNov 14, 2005
  3. Randal L. SchwartzNov 14, 2005
  4. Andreas EricssonNov 14, 2005
  5. FranckNov 14, 2005

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.