在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"
网友评论