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
- 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
May be interested
- Is Windows gone?roger mcnamee, a well-known silicon valley investor, recently released some notable statements about microsoft's windows operating system. roger mcnamee thinks that windows is no longer profitable for microsoft ...
- Apple has released an update to patch a series of vulnerabilities in iOS, macOS, Safari and many other platforms, update now!apple released patches for a range of simple to serious vulnerabilities that have been confirmed on ios and macos platforms, safari, watchos, tvos and itunes.
- Instructions for setting up iCloud email account for Android and Windows Phoneicloud is an apple cloud computing system and also an email service. in the past, we used to think that icloud email accounts could only be used on apple machines or via web platforms, while other platforms could not be installed to send and receive mail.
- Will Project Hera merge Android, Chrome and Google Search?since sundar pichai became the head of both chrome and android, it has been expected to make breakthroughs for both platforms. one of the latest rumors shows, google is planning to merge three android, chrome and google search platforms into one, with a project called project hera.
- Should you use third-party apps for social media platforms?third-party apps can improve your social media experience, but that doesn't mean they're a good fit everywhere.
- 5 free application building platforms do not need codein the past, to create an application, programmers will take weeks, months or even years. however, there are many application building platforms that you can use to create an application in minutes.
- What is Web 2.0, the platforms that create web 2.0web 2.0 refers to websites where users can interact with other users and with the website itself.
- What is RCS Messaging on Android? How to use it?you may have come across the terms rcs messaging or rcs chat in recent years. but what exactly does rcs mean? how is it different from sms/mms and other instant messaging platforms?
- 6 AI-powered features on LinkedIn you may not knowsome social media platforms use artificial intelligence (ai) to provide users with a variety of options, and linkedin is no different in this regard.
- This is one of the reasons why Linux is more secure than other operating system platformsalthough not the most commonly used operating system in the world, or as widely known as its competitors.