瀏覽代碼

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

Co-authored-by: Hugo Locurcio <[email protected]>
Paul Maréchal 5 年之前
父節點
當前提交
244808a9e1
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      getting_started/workflow/project_setup/version_control_systems.rst

+ 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.
 - ``.mono/``: This folder stores automatically-generated Mono files. It only exists
   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