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.

Retrieving Files from Org Causes Git file differences on windows

See original GitHub issue

When doing a source:retrieve of files that are already local, git detects these files as changed on even when there is no change. This was reported on windows so I suspect it is something to do with line endings.

screen shot 2019-02-04 at 11 20 35 am

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jayreecommented, Dec 9, 2020

Have you tried adding a .gitattributes file to the root of the repository setting text=auto?

1reaction
leonardoRampazzocommented, Dec 10, 2020

text=auto

the sfdx still show conflicts, but now when i choose to override conficts git doesn’t show 4k of changes, thanks a lot!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git diff Command – How to Compare Changes in Your Code
You can run git diff <commit_hash> <commit_hash> the command to compare the changes between two commits. Like branch comparison, order does ...
Read more >
Git in Visual studio code says file is modified even when there ...
When I right-click on the package.xml and say Retrieve Source From Org, it is getting all the files from Org. The problem is...
Read more >
VS Code shows modified file - git - Salesforce Stack Exchange
We are working on two types of OS - Windows and Mac. I'm just retrieving code from org and ...
Read more >
git-fetch Documentation - Git
Fetch branches and/or tags (collectively, "refs") from one or more other repositories, along with the objects necessary to complete their histories.
Read more >
Review your repo history - Azure Repos | Microsoft Learn
Compare file versions; Restore files; Compare branches. To learn how to use Visual Studio 2022 with Git, see How Visual Studio makes version ......
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