相关疑难解决方法(0)

为什么git不会忽略这些文件?

我的.gitignore文件包含以下行:

 xcuserdata/**/*
 !xcuserdata/**/xcschemes/*
Run Code Online (Sandbox Code Playgroud)

但仍会跟踪以下文件 /MyApp/MyApp.xcodeproj/xcuserdata/colas.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist

为什么会这样?我该如何解决这个问题?

PS:如果有的话MyApp.xcodeproj/xcuserdata/colas.xcuserdatad/xcdebugger,文件会被忽略.但我不明白为什么没有这个"黑客"就不会忽视它们.


编辑1

与其中一个答案所说的相反,即模式

 xcuserdata/**/*
 !xcuserdata/**/xcschemes/*
Run Code Online (Sandbox Code Playgroud)

工作!!! 我的意思是,/xcschemes跟踪下的文件.

另请参阅Gcode忽略文件的Xcode项目,我在这里得到这个.gitignore文件.

编辑2

我的Git版本是1.8.3.4 (Apple Git-47).

编辑3

当我git check-ignore这个文件时,这就是我得到的

  fatal: Not a git repository (or any of the parent directories): .git
Run Code Online (Sandbox Code Playgroud)

但事实是父目录是一个git目录......

编辑4

当我git check-ignore --no-index --这个文件时,这就是我得到的

[MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeSnippetsHelper.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-02-10 10:03:50.856 xcodebuild[1496:d07] XcodeColors: load (v10.1) …
Run Code Online (Sandbox Code Playgroud)

git xcode

6
推荐指数
2
解决办法
2726
查看次数

标签 统计

git ×1

xcode ×1