Skip to content

Commit 0d93689

Browse files
committed
added a note about line endings in windows, fixes #913
1 parent 50079e5 commit 0d93689

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

contributing/code/patches.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,28 @@ Set up your user information with your real name and a working email address:
9393
If you are new to Git, we highly recommend you to read the excellent and
9494
free `ProGit`_ book.
9595

96+
.. tip::
97+
98+
Windows users: when installing Git, the installer will ask what to do with
99+
line endings and suggests to replace all Lf by CrLf. This is the wrong
100+
setting if you wish to contribute to Symfony! Either select the as-is method
101+
or the Lf method. If you have already installed Git, you can check the value
102+
of this setting by typing:
103+
104+
.. code-block:: bash
105+
106+
$ git config core.autocrlf
107+
108+
This will return either "false", "input" or "true", "true" being the wrong
109+
value. Set it to another value by typing:
110+
111+
.. code-block:: bash
112+
113+
$ git config --global core.autocrlf false
114+
115+
Replace --global by --local if you want to set it only for the active
116+
repository
117+
96118
Get the Symfony2 source code:
97119

98120
* Create a `GitHub`_ account and sign in;

0 commit comments

Comments
 (0)