Git ignore UserInterfaceState.xcuserstate问题

使用Xcode的Source Control时,老是出现UserInterfaceState.xcuserstat文件没有commit的情况.

解决方法:

可能Git已经在track该文件了:

Git的文档写到:

To stop tracking a file that is currently tracked, use git rm --cached.

git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate
git commit -m "Removed file that shouldn't be tracked"

来自StackOverflow

你可能感兴趣的:(Git ignore UserInterfaceState.xcuserstate问题)