Search code examples
githubgithub-for-windows

Github Desktop shows > 600 files changed, but commit shows only 290 changed


I made local changes to my repo. Github Desktop showed over 600 files changed.

I then committed to my branch. The commit showed up on Github.com with no issues, however, only 290 files are shown as changed.

The bulk of my changes were from updating an admin theme, which involved copy/replacing a number of files from an external folder into my local repo.

It's likely that a large number of these files weren't actually different, but Github Desktop registered them as changes anyway. Perhaps when I committed, Github compared and determined that only 290 of the 600+ files "changed" were actually different?

Should I be concerned about the discrepancy, or is the theory explained above the likely cause?


Solution

  • Open a shell from GitHub desktop and check your git config -l core.autocrlf:
    if it is true, it is possible Git has changed the eol (end-of-lines) characters to Windows ones (\r\n) automatically.
    See "Is there a way to determine the line endings in a existing git repo?"

    That would explain the large number of local changes.