GitHub Desktop: "This file is empty"

Franck Dernoncourt picture Franck Dernoncourt · Jan 1, 2016 · Viewed 9.4k times · Source

The file naaclhlt2016.tex is not empty on the client or in the repository, however GitHub Desktop displays "This file is empty". What could explain this?

enter image description here

The file naaclhlt2016.tex is present on GitHub repository:

enter image description here

git status:

enter image description here

It creates conflict when I try to sync:

enter image description here

Answer

VonC picture VonC · Jan 2, 2016

After discussion, if the change of the tex file is only in term of metadata (and not actual file content change, after a latex recompilation), the GitHub Desktop might be unable to display any change.

Since it detects no change even though the git status list this file, it falls back to a "this file is empty" message.