忽略文件
// 删除文件(本地文件没删除,删除的是本地仓库的索引)
git rm --cached [YourProjectName].xcworkspace/xcuserdata/[YourUsername].xcuserdatad/UserInterfaceState.xcuserstate
git commit -m UserInterfaceState.xcuserstate
git push
忽略文件夹
// 删除文件夹(本地文件夹没删除,删除的是本地仓库的索引)
git rm -rf --cached [YourProjectName].xcworkspace/xcuserdata/
git commit -m xcuserstate
git push