Changes between Version 7 and Version 8 of GitCrashCourse


Ignore:
Timestamp:
05/10/11 11:36:43 (13 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GitCrashCourse

    v7 v8  
    3030
    3131= Other neat features to enable =
     32
     33== Handling linefeeds ==
     34
     35When working in mixed Windows/*NIX environments special care needs to be taken to handle linefeeds. Suggested best practice for OpenVPN developers working ''on *NIX'' is to use ''core.autocrlf=input'':
     36
     37 {{{
     38 git config --global core.autocrlf input
     39 }}}
     40
     41This will make sure that any CRLF linefeeds are converted to LF only when reading from the filesystem. ''On Windows'' set this to ''true'' instead:
     42
     43 {{{
     44 git config --global core.autocrlf true
     45 }}}
     46
     47This will convert CRLF linefeeds to LF when reading from ''and'' writing to the filesystem.
    3248
    3349== Making git colourful ==