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=12058920 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 Peter May · on Jan 23, 2012

Recommendation

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/

Mac & Linux

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.

Windows msysgit

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'.