From: Andreas Ericsson <ae@op5.se>
To: unlisted-recipients:; (no To-header on input)
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Simple questions on GIT usage.
Date: Mon, 14 Nov 2005 17:08:39 +0100 [thread overview]
Message-ID: <4378B687.3060701@op5.se> (raw)
In-Reply-To: <cda58cb80511140746w2f691fb8y@mail.gmail.com>
Franck wrote:
> 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
next prev parent reply other threads:[~2005-11-14 16:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-14 15:46 Simple questions on GIT usage Franck
2005-11-14 16:08 ` Andreas Ericsson [this message]
2005-11-14 16:37 ` Randal L. Schwartz
2005-11-14 16:56 ` Andreas Ericsson
2005-11-14 16:36 ` Franck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4378B687.3060701@op5.se \
--to=ae@op5.se \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).