Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Desktop: "This file is empty"

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

like image 513
Franck Dernoncourt Avatar asked Jan 01 '16 19:01

Franck Dernoncourt


2 Answers

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.

like image 82
VonC Avatar answered Nov 19 '22 16:11

VonC


In addition to the @VonC response.

To dissmiss this alert

Git desktop

  1. unselect all changed files

  2. select only the "this file is empty" files

  3. try to commit

  4. Git will display a commit error, saying that you can't do that. After closing the modal, Git should delete the files from the changes list.

like image 1
Julha Avatar answered Nov 19 '22 16:11

Julha