Re: Simple questions on GIT usage.
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