“git add” returning “fatal: outside repository” error

前端 未结 10 2101
情话喂你
情话喂你 2021-01-31 16:34

I\'m just entering into the wonderful world of git. I have to submit a bunch of changes that I\'ve made on my program, located in a directory called /var/www/myapp

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 16:58

    When upgraded to git version 2.12.2 that error appeared, I nooted the i add the file with a full path like:

    git add c:\develop\project\file.text
    

    when removed the full path it start working, like:

    git add file.text
    

提交回复
热议问题