![]() ![]() Those line ending characters used to be control characters for teletypewriters (TTY). Well, if you have prettier enabled and the endOfLine property is set to lf. To the naked eye the content will look the same, so why should we bother? On the Windows machine the default for the line ending is a Carriage Return Line Feed ( CRLF), whereas on Linux/MacOS it's a Line Feed ( LF). Not all developers are the same, just because you develop on a Windows machine using Visual Studio Code, don't expect the next pull request to have been implemented using the same dev environment (MacOS machine using Sublime Text 2).Īs mentioned above the developers are using different OSes (Windows and MacOS) the default for the line ending will differ. ![]() This article will now dive deeper into how to configure the line endings, so every developer uses the same value when using different machines / OSes across the repository. One of these attributes is the eol (end of line) and is used to configure the line endings for a file. In other words git automatically saves the file according to the attributes specified, every time a file is created or saved. gitattributes file allows you to specify the files and paths attributes that should be used by git when performing git actions, such as git commit, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |