git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "git reset --hard" not cleaning up working copy?
@ 2007-05-07  7:51 Johan Herland
  2007-05-07 11:13 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Herland @ 2007-05-07  7:51 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

Hi,

When I "git reset --hard HEAD" to purge all my non-committed changes, it 
seems that files I created after the last commit (but not part of the 
index) are left lying around my working copy. Is this intended?


Have fun!

...Johan

-- 
Johan Herland, <johan@herland.net>
www.herland.net

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "git reset --hard" not cleaning up working copy?
  2007-05-07  7:51 "git reset --hard" not cleaning up working copy? Johan Herland
@ 2007-05-07 11:13 ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2007-05-07 11:13 UTC (permalink / raw)
  To: Johan Herland; +Cc: git

Hi,

On Mon, 7 May 2007, Johan Herland wrote:

> When I "git reset --hard HEAD" to purge all my non-committed changes, it 
> seems that files I created after the last commit (but not part of the 
> index) are left lying around my working copy. Is this intended?

Bien sur it is intended! Git has no business deleting files it has not 
been told about.

What you probably want is "git clean" after that reset...

Hth,
Dscho

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-07 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07  7:51 "git reset --hard" not cleaning up working copy? Johan Herland
2007-05-07 11:13 ` Johannes Schindelin

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).