-1

I have more that one file. When I want to add all the files I type git add -A but after pressing enter it start showing warning and at last it shows

fatal: adding files failed.

I don't know how to solve this error or problem.

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

0

Would be useful to know your git version (git --version). Also how many files are in there? What's the current status (git status)?

Also see how to debug git.

Stefano
  • 1,686
  • 1
  • 16
  • 25
  • Hello, Actually I am a beginner so that's why I don't know too much, according to your question my version is 2.33.0.windows.2. . Not that much file actually I am learning so that's why I just made 3 files. My current status is I am in branch master and after typeing git status it shows {warning: could not open directory 'Application Data/': permission denied} and it is not showing only this warning it is showing so much warning. – Aman Singh Oct 09 '21 at 17:55
-1

If there is a permission issue, resolving that first could be a good first step.

Clearly Seeing
  • 101
  • 2
  • 5
  • Welcome to Stack Overflow. Please read [answer]. This sounds more like a comment. Once you earn enough reputation you'll be able to comment; until then, please ask and answer questions that don't require clarification to earn reputation points. – ChrisGPT was on strike Oct 10 '21 at 17:34