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

Git checkout issue - deleting file without apparent reason

From
PWPaul van Wichen <paul.vanwichen@cloudcheckr.com>
Date
May 3, 2017, 01:33 UTC
Message-ID
<CAK6FQHcHxwCgzGFCnV_3wvX-sVvL8cHpZH11x6ffbzxUJTTGCQ@mail.gmail.com>
Hi,
We are having a strange issue that we haven't been able to pin down.
Scenario: master branch and feature branch both have a specific file.
1. Master checked out.
2. git status show no changes / clean staging area.
3. Checkout feature branch .
4. git status show no changes / clean staging area.
5. Checkout master again.
6. git status shows that a file has been deleted (i.e. the file was
removed from the file system and the staging area shows it as
deleted).

The file exists in both the feature branch and the master branch. As best as we can tell, the file is identical on both commits. The issue occurs on multiple platforms - tested on Windows and OS X. It only occurs for 1 specific file.

Based on the activity of the file, nothing stands out as unusual.
How we go about troubleshooting this and determining the cause?

Thanks, Paul van Wichen.

Next: Bryan Turner
Message 1 of 3 in “Git checkout issue - deleting file without apparent reason”
  1. Paul van WichenMay 3, 2017
  2. Bryan TurnerMay 3, 2017
  3. Jeff KingMay 3, 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.