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.
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
You should read it
- Conflict handling in Git
- What is RAM conflict? Causes and ways to fix RAM Conflict
- 3 great lessons you will get when working with people who make you 'crazy'
- How to Create a Pull Request on Github
- Managing branches in Git
- Handling copy - HANDLING DUPLICATE in SQL
- Exception handling and error (Error & Exception Handling)
- Create a Site-to-site VPN on ISA 2006 (Part 5)
- How to fix Windows Has Detected An IP Address Conflict error
- Exception handling - Exception Handling in Python
- Leopards make a melancholy jump to catch monkeys in the opposite tree
- Create a Site-to-site VPN on ISA 2006 (Part 3)
Maybe you are interested
How to switch users on the Linux command line
Norway becomes the first country to have more electric cars than gasoline cars, why?
How to remove underline in Word, remove red and green underline under words
Mapping Cyber Incidents with Windows Timeline: The What and When of Digital Forensics
The entire iPhone 16 lineup adds support for faster Wi-Fi 7
PowerPoint 2016: How to align margins and line spacing