You can use it as a template for your repositories: # Set the default behavior, in case people don't have tocrlf set. On the right is the line ending configuration that Git should use for those files.On the left is the file name for Git to match.gitattributes file looks like a table with two columns: gitattributes file must be created in the root of the repository and committed like any other file.Ī. This ensures consistent behavior for all users, regardless of their Git settings and environment. When you commit this file to a repository, it overrides the tocrlf setting for all repository contributors. gitattributes file to manage how Git reads line endings in a specific repository. # Configure Git to ensure line endings in files you checkout are correct for Linux Per-repository settings For example: $ git config -global tocrlf input On Linux, you simply pass input to the configuration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |