UserInterfaceState.xcuserstate没法被忽略
1、git status
$ git status
On branch mx
Your branch is ahead of 'origin/mx' by 1 commit.
(use "git push" to publish your local commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
xxx/xxx.xcworkspace/xcuserdata/vhall.xcuserdatad/UserInterfaceState.xcuserstate
nothing added to commit but untracked files present (use "git add" to track)
2、git rm 路径
$ git rm --cached xxx/xxx.xcworkspace/xcuserdata/vhall.xcuserdatad/UserInterfaceState.xcuserstate
3、git status
$ git status
On branch mx
Your branch is ahead of 'origin/mx' by 1 commit.
(use "git push" to publish your local commits)
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: VhallModuleUI_demo/VhallModuleUI_demo.xcworkspace/xcuserdata/vhall.xcuserdatad/UserInterfaceState.xcuserstate
4、git add
git add .
5、commit
…
6、pull push
…