0

I searched and tried answer but problem didn't solve, I git init into android project and after making first push, I changed alot of things removed added new files and fonts (I don't remember if i git added during this) now when I ready to pus i ran command git status I see files in red as untract files, then I ran git add . but Im getting this error:

warning: LF will be replaced by CRLF in app/app.iml.
The file will have its original line endings in your working directory.
fatal: unable to stat 'app/src/main/res/drawable/slide_thre.jpg':
Permission denied 

the file slide_thre.jpg I deleted way before git add wen I was working but its still showing this error, I dont know if its cached

I tried closing IDE before git add and tried other solution but didn't work

start: git status ->

git status -end

blackHawk
  • 6,047
  • 13
  • 57
  • 100

2 Answers2

0

Try closing any programs that have the folder open, such as editors, explorer windows, command prompts, and FTP programs. This always fixes the issue for me on Windows.

You can also try "invalidate & restart" your IDE, that should clean the caches. Lastly, try disabling the virus checker just to see if it would let you through then.

SO Post

Morphing Coffee
  • 815
  • 1
  • 10
  • 20
0

did you close your photoviewer application which open slide_thre.jpg?

Linh Nguyen
  • 1,264
  • 1
  • 10
  • 22