git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: how are "untracked working tree files" even possible in this case?

From
Stefan Beller <sbeller@google.com>
Date
Feb 15, 2017, 23:40 UTC
Message-ID
<CAGZ79kYyzFwqmjO1kZSS0-ARrnk+mhooCPrP5oHiff_2piwvzQ@mail.gmail.com>
In-Reply-To
<CAAj3zPx6uP5WbA68Co0yX_yh-e5C+jze2T1hJ0NYS7hHBzgdqg@mail.gmail.com>

On Wed, Feb 15, 2017 at 12:36 PM, G. Sylvie Davies <sylvie@bit-booster.com> wrote:

Show 7 quoted lines
> Hi,
>
> I have a script that runs the following sequence of commands within a clone:
>
> -----
> /usr/bin/git rebase --abort (took 148ms)
> /usr/bin/git cherry-pick --abort (took 103ms)
Is there more happening before?
> /usr/bin/git clean -d -f -x (took 2007ms)
> /usr/bin/git reset --hard --quiet
I think the order is important:
    git add <file> # add to the index
    git clean -dfx # <file> is not untracked, hence not removed
    git reset --hard # <file> is untracked now?
So I would expect reset before running clean would fix the problem?
Previous: G. Sylvie Davies
Message 4 of 4 in “how are "untracked working tree files" even possible in this case?”
  1. G. Sylvie DaviesFeb 15, 2017
  2. G. Sylvie DaviesFeb 15, 2017
  3. G. Sylvie DaviesFeb 15, 2017
  4. Stefan BellerFeb 15, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.