2
我~/.config/git/ignore
文件包括:为什么我的git忽略文件匹配xcuserdata?
xcuserdata/**
我刚刚签出,从到位桶一个新的项目,在Xcode中打开它,跑git status
,它表明:
Untracked files:
(use "git add <file>..." to include in what will be committed)
Project Name.xcodeproj/project.xcworkspace/xcuserdata/
为什么没有忽视与此目录匹配的文件?
$ XDG_CONFIG_HOME未设置,并且xcuserdata仍显示为未跟踪文件。我该如何解决? –
@VaddadiKartick你有没有在'xcuserdata'中跟踪任何文件?尝试一个'git rm --cached'闪存Camera.xcodeproj/project.xcworkspace/xcuserdata /“' – VonC
它说:fatal:pathspec没有匹配任何文件。我在Bitbucket的网络用户界面上确认,xcuserdata没有被跟踪。 –