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
Asked
Active
Viewed 503 times
-1

Jack Guo
- 3,959
- 8
- 39
- 60
-
Possible duplicate of [git commit get fatal error "fatal: CRLF would be replaced by LF in"](https://stackoverflow.com/questions/20168639/git-commit-get-fatal-error-fatal-crlf-would-be-replaced-by-lf-in) – phd Sep 06 '18 at 19:09
-
https://stackoverflow.com/search?q=%5Bgit%5D+fatal%3A+CRLF+would+be+replaced+by+LF – phd Sep 06 '18 at 19:09
1 Answers
0
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.

Jack Guo
- 3,959
- 8
- 39
- 60