1

I was trying to change the directory structure of my repository, as detailed in this question (following the accepted answer). Things seemed fine after moving the directory, though it didn't recognise the files in their new location, and I got frustrated and just re-added everything. Now every file that I try to git-add comes back as 'fatal: pathspec FILE did not match any files'.

I honestly don't know how to diagnose the problem, and I don't want to blunder forward and screw things up even further. Any advice on how to proceed?

(git version 1.7.4.4 on OS X 10.8.2, if it's relevant)

4

1 回答 1

1

呸,这是我自己的愚蠢错误。当它在链接问题中接受的答案之后无​​法识别其新位置中的文件时,我对其他答案进行了尝试,以查看是否可以使其正常工作,并且我认为我最终将工作树目录更改为错误的旧子目录。因此,它在根目录中看不到任何内容。修改 .git/config 以将 worktree 设置为 repo 的当前根目录修复了该问题。

于 2013-03-14T01:30:15.817 回答