在sourceTree中找到需要忽略的文件集索,執(zhí)行下列語句
git rm --cached projectName.xcworkspace/xcuserdata/username.xcuserdatad/UserInterfaceState.xcuserstate
在把這段代碼粘貼 .gitignore 中
*.xcuserstate
project.xcworkspace
xcuserdata
UserInterfaceState.xcuserstate
project.xcworkspace/
xcuserdata/
UserInterface.xcuserstate
執(zhí)行
git add .
git commit -m "message"