While I am trying to do git add
for a folder or for all files, I am getting the fatal error as shown below.
MINGW64 /c/xampp/htdocs/d95x-dev (master)
$ git add /vendor
fatal: C:/Program Files/Git/vendor: 'C:/Program Files/Git/vendor' is outside repository at 'C:/xampp/htdocs/d95x-dev'
It is automatically adding this path C:/Program Files/Git/
in front of the folder name that I am trying to add.
Why is it doing this?
My folder is at the path C:/xampp/htdocs/d95x-dev
, how can I tell git add
to add C:/xampp/htdocs/d95x-dev/vendor
instead?
CodePudding user response:
Try
git add vendor/
Or, You can also add all the files using
git add .