Cross-Platform Line Ending Issues When Syncing Git Repositories with OneDrive

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.

Parenting Note: Learning to Say Goodbye

In the morning, as I accompanied my wife to the rail station, I couldn’t help but think about the repeated struggles I’ve had with saying goodbye to my daughter. Then, by chance, I remembered a phrase I had heard before but never understood. In that moment, it clicked, and I suddenly realized what I needed to do.

Understand Events in EVM

Events are essential components of blockchain smart contracts, used to record on-chain actions and trigger off-chain listener responses. In this article, we'll explore key event concepts and analyze their data structures and design logic through two examples.

“I Know” and “It’s Fine”: Two Toxic Communication Habits

Recently, by observing how my friends and family communicate, I suddenly realized that I used to have two very annoying communication habits as a child. What’s frightening is that these habits, while seemingly harmless on the surface, actually reveal deeper psychological issues—a mix of arrogance and insecurity. Today, I want to analyze these habits, reflect on them, and hopefully inspire you to recognize and overcome similar tendencies.
Zhenye Dong
Zhenye Dong
Product Manager | New Dad | New Blogger
Latest posts
Fixing Terminal Exit Code 1 in Cursor IDE on Windows
2025-3-19
Cross-Platform Line Ending Issues When Syncing Git Repositories with OneDrive
2025-3-10
The Crying Test: A Guide for Setting Rules
2025-2-6
Parenting Note: Learning to Say Goodbye
2025-2-6
Parenting Note: Why laughter Can’t neutralize Tears?
2025-2-6
How to display [[roam/js]] results inline in Roam Research?
2025-1-5