This article discusses cross-platform line ending issues when synchronizing Git repositories through OneDrive. When code from Windows is synced to macOS via OneDrive, Git shows files as modified despite no actual content changes. The post analyzes the technical reasons behind this phenomenon and provides complete solutions, including adding a .gitattributes file and standardizing Git configurations to ensure smooth cross-platform collaboration.