Re: RFC: perhaps a "new file" should not be deleted by "git reset --hard"
- From
- Eric Raible <raible@gmail.com>
- Date
- Sep 11, 2008, 23:29 UTC
- Message-ID
- <279b37b20809111629s3c91ae4ci33135535812383e3@mail.gmail.com>
- In-Reply-To
- <3ab397d0809111604r5d9dda04p32a987208d1fa92d@mail.gmail.com>
On Thu, Sep 11, 2008 at 4:04 PM, Jeff Whiteside <jeff.m.whiteside@gmail.com> wrote:
> And if you want to delete all untracked files > ls | sed s/`git status --index --filenamesonly`//g | rm > ls | sed s/`git status --commitrepo --filenamesonly`//g | rm > (I realize those commands don't actually work, but I'm a noob.)
"git clean" will remove untracked files.