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

前端 未结 10 2008
情话喂你
情话喂你 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
    2021-01-31 17:01

    That's because you are versioning stuff inside /home/mylogin/gitclone and git tracks everything inside that folder. You cannot track other folders outside of this repository.

    A solution might be create a submodule, or using a symbolic link using ln -s

提交回复
热议问题