Git 忽略文件 UserInterfaceState.xcuserstate

在sourceTree中找到需要忽略的文件,执行下列语句

git rm --cached projectName.xcworkspace/xcuserdata/username.xcuserdatad/UserInterfaceState.xcuserstate

在把这段代码粘贴 .gitignore

*.xcuserstate
project.xcworkspace
xcuserdata
UserInterfaceState.xcuserstate
project.xcworkspace/
xcuserdata/
UserInterface.xcuserstate

执行

git add .
git commit -m "message"

你可能感兴趣的:(Git 忽略文件 UserInterfaceState.xcuserstate)