"git reset --hard" not cleaning up working copy?
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
Signature · 2 lines
Johan Herland, <[email protected]> www.herland.net
Hi,
Quoted 3 lines · Johan Herland
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