Android Studio "fatal: CRLF would be replaced by LF”
Android Studio "fatal: CRLF would be replaced by LF”
I enabled Android Studio version control by clicking VCS -> Enable version control. Then it shows all my files are unversioned at this stage. So I right click on my project and Git -> Add, but then it gives me Error Adding Files
VCS
Enable version control
Git
Add
Error Adding Files

stackoverflow.com/…
– phd
Sep 6 '18 at 19:09
1 Answer
1
Here is a little trick that unexpectedly solved my problem. Instead of adding the entire project, I added one file first (any file), by clicking on the file, then VCS -> Git -> Add. Then I selected app, and I was able to add the entire project.
VCS
Git
Add
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Possible duplicate of git commit get fatal error "fatal: CRLF would be replaced by LF in"
– phd
Sep 6 '18 at 19:09