Powered by OPF
OPF WIKI STATIC ARCHIVE
2,681 pages · 153 spaces · 776 tags · 4,025 history records · 96.2% of the original wiki recovered
Archived copy. This page was recovered from the Internet Archive snapshot of /pages/viewpage.action?pageId=2097342 taken on 2022-08-14. The original wiki at wiki.opf-labs.org is being decommissioned.

Configuring how line-endings are handled by git

Added by Andrew Jackson · last edited by Andrew Jackson · on Mar 25, 2011

As we are a cross-platform project, it is important that line-endings are handled consistently. Please abide by the general github advice: http://help.github.com/dealing-with-lineendings/

As the page says, Mac and Linux users do not get to sit this out, and should also configure their git repo to commit Unix-style line endings.

If you are using msysgit, you may be presented with these options:

I strongly recommend selection option two, 'Checkout as-is, commit Unix-style line endings'.

(Thanks to Sven for the screenshot.)