question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unchanged files marked as changed after clone

See original GitHub issue

Description

After cloning my repository from Github more or less all files are marked as “changed”. I suspect it has to do with line endings since no changes are visible in the Desktop application. The weird thing is “git status” reports no changes - and I would expect this to be the source of truth. I have tried setting core.autocrlf to true|false|input and clone the repository again - same result with either setting. It’s worht mentioning that binary files are marked as changed as well - for instance gradle-wrapper.jar. This issue sadly renders the Desktop app completely unusable for me.

Version

  • GitHub Desktop: 1.2.3
  • Operating system: Windows 10 64bit

Steps to Reproduce

Unfortunately my repo is within a closed organizational account so I can’t provide access to the exact repo. The steps to reproduce however are:

  1. Clone repo
  2. Check status of “git status” and verify that all files are up-to-date
  3. Open Github desktop and add the newly cloned repo
  4. Verify that almost all files are reported as changed without and diff

Expected Behavior

Github Desktop should report the same as “git status”

Actual Behavior

Unchanged files are marked as changed in Github Desktop even though “git status” reports no changed files

Additional Information

As noted above I expect this to be related to line endings. There are many contributors to this repository and I cannot know which core.autoclrf setting they are using. They are all working from Windows based machines. Here is a screen shot from Github Desktop illustrating the problem along with a commandline status: image

Logs

2018-06-18.desktop.production.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chrstphrchvzcommented, Aug 18, 2018

I think core.filemode=true might be the culprit here (i.e. try running git config core.filemode false). I don’t know how that gets set by default, but looking online it seems to often be a problem Cygwin git users.

0reactions
stevewardcommented, Oct 4, 2018

@hoof setting core.filemode to false will force Git to ignore file mode changes. The default setting is true when core.filemode is not specified in the config file.

Did setting this value to false fix the issue for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Files showing as modified directly after a Git clone
It would assume all files had been changed. After running git config --global core.autocrlf input , it was still marking all files as...
Read more >
git status shows as files modified directly after clones
git status shows some of the files as modified after the clone without making any local changes. Following appears when a git status...
Read more >
Why does git show that all my files changed when I didn't ...
These changes mean that metadata about your file changed, however the content of your file did not. If you're working in a group,...
Read more >
Git Showing File as Modified Even if It Is Unchanged - DZone
This is one annoying problem that happens sometimes to git users: the symptom is: git status command shows you some files as modified...
Read more >
2.2 Git Basics - Recording Changes to the Repository
When you first clone a repository, all of your files will be tracked and unmodified because you just checked them out and haven't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found