Skip to content

Instantly share code, notes, and snippets.

@ctaggart
Created February 28, 2017 04:57
Show Gist options
  • Save ctaggart/469a3b9fb0113a2cc367fa347644a3b7 to your computer and use it in GitHub Desktop.
Save ctaggart/469a3b9fb0113a2cc367fa347644a3b7 to your computer and use it in GitHub Desktop.
test git line endings
git config --global --unset core.autocrlf
git config --system --unset core.autocrlf
git config --global --unset core.eol
git config --system --unset core.eol
git clone $repo test
git clone -c core.autocrlf=false $repo testAutocrlfFalse
git clone -c core.autocrlf=false -c core.eol=crlf $repo testAutocrlfFalseEolCrlf
git clone -c core.autocrlf=false -c core.eol=lf $repo testAutocrlfFalseEolLf
git clone -c core.autocrlf=input $repo testAutocrlfInput
git clone -c core.autocrlf=input -c core.eol=crlf $repo testAutocrlfInputEolCrlf
git clone -c core.autocrlf=input -c core.eol=lf $repo testAutocrlfInputEolLf
git clone -c core.autocrlf=true $repo testAutocrlfTrue
git clone -c core.autocrlf=true -c core.eol=crlf $repo testAutocrlfTrueEolCrlf
git clone -c core.autocrlf=true -c core.eol=lf $repo testAutocrlfTrueEolLf
git clone -c core.eol=crlf $repo testEolCrlf
git clone -c core.eol=lf $repo testEolLf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment