Git shows status clean, but checkout complains about overwriting untracked files


git status 

Result is clean.

  • How to apply a patch in Git which contains filename case changes?
  • Case sensitivity in Git
  • Git seeing imaginary files (case sensitivity)
  • what does git ignorecase really do? how to checkout respecting file capitalisation?
  • GitHub: How to do case sensitive search for the code in repository?
  • Rename all Git branch names to lowercase on Windows (GitHub remote)
  • Secondly

     git checkout fb/booking_interaction
     error: The following untracked working tree files would be overwritten by checkout:

    Thirdly, try to clear the untracked files. In the specified directory:

    git clean -f .

    Again, no changes and git checkout fails.

    What is the problem?

  • Git List Commits By Blobs
  • Git: getting the ref of a commit by day?
  • Best workflow using node.js npm and git
  • Why do I get a Windows file permission error (IO Error 13) with Android SDK when writing to files starting with a dot?
  • Who touched my git assume-unchanged bit?
  • Heroku pipelines without github
  • One Solution collect form web for “Git shows status clean, but checkout complains about overwriting untracked files”

    The issue is due to case sensitivity of the file system.

    Looking at the problem. File listing:

    > ls

    Check that git is set to case-sensitive

    > vi .git/config
    ignorecase = false

    This machine is case sensitive. The machine the change was made on must have been too.

    > git log
    removeformat.png - renamed from removeFormat.png. 

    Since I have changed ignorecase, git status now shows the change.

    > git status
    Untracked files:
    (use "git add <file>..." to include in what will be committed)

    Git clean also works as expected

    git clean -f .
    Removing blockQuote.png
    Removing bulletedList.png

    I can checkout the other branch without problems.

    Git Baby is a git and github fan, let's start git clone.