From: Junio C Hamano <gitster@pobox.com>
To: Sverre Rabbelier <srabbelier@gmail.com>
Cc: Quim K Holland <qkholland@gmail.com>,
dealmaker <vinkhc@gmail.com>,
git@vger.kernel.org
Subject: Re: How to ignore a modified file?
Date: Thu, 05 Mar 2009 02:21:43 -0800 [thread overview]
Message-ID: <7v4oy82rt4.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <fabb9a1e0903050209i1e70c8b3n69d7ade9e382b617@mail.gmail.com> (Sverre Rabbelier's message of "Thu, 5 Mar 2009 11:09:45 +0100")
Sverre Rabbelier <srabbelier@gmail.com> writes:
> Heya,
>
> On Thu, Mar 5, 2009 at 09:53, Quim K Holland <qkholland@gmail.com> wrote:
>> You can run "git checkout directory".
>
> Yes, but that would destroy his changes, I do not get the impression
> that that's what he wants...
Actually, I thought the advises from you two were both horrible without
first qualifying the answers nor asking what was really wanted.
Yours didn't *ignore* changes, but staged (and would result in a later
commit) a different change to these paths, namely removal of them.
"I have these changes but I want to ignore" may mean "I didn't mean to
change them and do not care about them." and "checkout" may be the right
thing to use if that is the case.
next prev parent reply other threads:[~2009-03-05 10:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-05 8:53 How to ignore a modified file? Quim K Holland
2009-03-05 10:09 ` Sverre Rabbelier
2009-03-05 10:21 ` Junio C Hamano [this message]
2009-03-05 13:58 ` Sverre Rabbelier
-- strict thread matches above, loose matches on Subject: below --
2009-03-05 8:44 dealmaker
2009-03-05 8:50 ` Sverre Rabbelier
2009-03-05 20:45 ` Robin Rosenberg
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=7v4oy82rt4.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=qkholland@gmail.com \
--cc=srabbelier@gmail.com \
--cc=vinkhc@gmail.com \
/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).