Переглянути джерело

Mention Git for Windows CRLF/LF line ending issues (#3891)

Co-authored-by: Hugo Locurcio <[email protected]>
Paul Maréchal 5 роки тому
батько
коміт
244808a9e1

+ 9 - 0
getting_started/workflow/project_setup/version_control_systems.rst

@@ -35,3 +35,12 @@ There are some folders Godot creates you should have your VCS ignore:
   project, including sensitive information such as Android keystore credentials.
   project, including sensitive information such as Android keystore credentials.
 - ``.mono/``: This folder stores automatically-generated Mono files. It only exists
 - ``.mono/``: This folder stores automatically-generated Mono files. It only exists
   in projects that use the Mono version of Godot.
   in projects that use the Mono version of Godot.
+
+Working with Git on Windows
+---------------------------
+
+Most Git for Windows clients are configured with the ``core.autocrlf`` set to ``true``.
+This can lead to files unnecessarily being marked as modified by Git due to their line endings being converted automatically.
+It is better to set this option as::
+
+    git config --global core.autocrlf input