From: Philippe Blain Date: Sun, 11 Oct 2020 16:19:17 GMT Subject: Re: [BUG?] After 'git checkout', files deleted upstream are left in the working directory as untracked Message-ID: <7F30E2AB-D742-4581-9AF8-6138A45A3F22@gmail.com> In-Reply-To: <8f88733f-4f20-6215-00a8-de3024b8c4cb@kdbg.org> Hi Johannes, > Le 11 oct. 2020 à 02:58, Johannes Sixt a écrit : > > Am 10.10.20 um 18:43 schrieb Philippe Blain: >> The thing is, I can't reproduce it on a fresh clone. If I could, this would be a reproducer: >> >> ``` >> $ git clone git@github.com:phil-blain/git.git && cd git >> $ git checkout stale-branch >> $ git checkout other-branch >> $ git status # the following is what is shown in my old clone >> On branch other-branch >> Untracked files: >> (use "git add ..." to include in what will be committed) >> >> git-legacy-stash >> git-remote-testsvn >> t/helper/test-line-buffer >> t/helper/test-svn-fe >> >> nothing added to commit but untracked files present (use "git add" to track) >> ``` > > This is normal. These 4 files are build products and were never > committed files. They had been mentioned in .gitignore in the past, but > are not anymore. Oops, I should've checked that. Thanks for answering! Philippe.