Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to suppress line endings warning? #3068

Closed
mmoayyed opened this issue Dec 22, 2015 · 3 comments
Closed

Option to suppress line endings warning? #3068

mmoayyed opened this issue Dec 22, 2015 · 3 comments

Comments

@mmoayyed
Copy link

Stage 1 files
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory.

Done

Is it possible to suppress this warning via an option and just proceed?

@remcoros
Copy link

This is a message from git, you can disable it in your .gitconfig:

git config --global safecrlf false

This disables the warning. Other values are: true (block when this happens) or the default: warn

@mmoayyed
Copy link
Author

That tells me:

> git config --global safecrlf false
error: key does not contain a section: safecrlf

and

> git --version
git version 2.6.3.windows.1

@mmoayyed
Copy link
Author

This works: git config --global core.safecrlf false
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants