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

Re: [BUG?] After 'git checkout', files deleted upstream are left in the working directory as untracked

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 12, 2020, 11:10 UTC
Message-ID
<nycvar.QRO.7.76.6.2010121306470.50@tvgsbejvaqbjf.bet>
In-Reply-To
<3D3C5F5D-830E-4EC7-A527-DC595D983BB2@gmail.com>
Hi Philippe,
On Sat, 10 Oct 2020, Philippe Blain wrote:
Show 9 quoted lines
> $ git status # the following is what is shown in my old clone
> On branch other-branch
> Untracked files:
>   (use "git add <file>..." to include in what will be committed)
>
> 	git-legacy-stash
> 	git-remote-testsvn
> 	t/helper/test-line-buffer
> 	t/helper/test-svn-fe

These files were generated previously, but are no longer generated (`legacy-stash` was retired in favor of the built-in `stash`, `remote-testsvn` was dropped because it languished for long enough without anybody picking it back up, and the test helpers were necessary to test `test-svn`).

Since they are no longer generated, those build products are no longer desired.

And you don't see them in a fresh clone because they were only compiled in previous revisions.

So this works as expected.

What you will want to do is to run `git clean -dn` to see what `clean` would remove, and once satisfied that it's all good, actually remove the files using `git clean -df`.

Ciao, Dscho

Previous: Philippe Blain
Message 4 of 4 in “[BUG?] After 'git checkout', files deleted upstream are left in the working directory as untracked”
  1. Philippe BlainOct 10, 2020
  2. Johannes SixtOct 11, 2020
  3. Philippe BlainOct 11, 2020
  4. Johannes SchindelinOct 12, 2020

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.