Different Platforms in Git
GNU / Linux and Mac OS use line-feed (LF), or a new line when line-ending characters while Windows uses line-feed combination and carriage-return (LFCR) to signify The ending of the character line ends.
GNU / Linux and Mac OS use line-feed (LF), or a new line when line-ending characters while Windows uses line-feed combination and carriage-return (LFCR) to signify The ending of the character line ends.
To avoid unnecessary commits because the line difference ends, we must configure the client to write the same line-ending to the repository.
For the Windows operating system, we can configure the Git client to convert line-ending to CRLF format while checking, and convert them back to LF format during commit operations. The following settings are necessary to perform.
[tom @ CentOS project] $ git config --global core.autocrlf true
For GNU / Linux or Mac OS operating systems, we can configure the git client to convert line-ending from CRLF to LF during the checkout operation.
[tom @ CentOS project] $ git config --global core.autocrlf input
According to Tutorialspoint
Previous article: Handling Conflict in Git
Next article: Overview of MongoDB
- 10 best apps for platforms
- IoT cloud platform usage cases
- The Best Online Programming Platforms for Kids
- Review: Process, Convert and Edit 4K Videos Fast with VideoProc
- Microsoft introduced PowerShell 7 for all platforms
- AI Music Is Taking Over Your Favorite Streaming Platforms: Here Are 3 Ways to Avoid It!
- How to run the emulator on the Raspberry Pi 4
- Windows and Mac OS - 'Who' wins?
- How Trading Financial Assets Through Electronic Platforms Work
- 10 Best Artificial AI Platforms for Businesses in 2026
- 15 Best CMS Platforms in 2025
- 15 Best CMS Platforms of 2026
- From Card Games To Digital Platforms: The Evolution Of Entertainment Tech
- People who work with creative content on online platforms have earned nearly $ 7 billion