我正在Xcode項目中工作,並且正在嘗試將.gitignore配置爲不在xcuserdata文件夾中獲取任何內容。.gitignore for xcuserdata文件夾中的所有內容不會忽略xcuserstate文件
我有以下的.gitignore:
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
xcuserdata/*
,但每當我構建/運行該項目,並執行git status
時間,它仍然顯示了以下midified文件:
modified: MyProject.xcodeproj/project.xcworkspace/xcuserdata/fernando.xcuserdatad/UserInterfaceState.xcuserstate
有誰知道任何想法有什麼不對?