Xcode中左邊顯示字體具體代表的意思
- "M" = Locally modified
- "U" = Updated in repository
- "A" = Locally added
- "D" = Locally deleted
- "I" = Ignored
- "R" = Replaced in the repository
- “–” "=" The contents of the folder have mixed status; display the contents to see individual status
- "?" = Not under source control
- 'A' 新增
- 'D' 刪除
- 'M' 修改
- 'R' 替代
- 'C' 沖突
- 'I' 忽略
- '?' 未受控
- '!' 丟失,一般是將受控文件直接刪除導(dǎo)致
這些標(biāo)記跟你使用的代碼托管工具或者xcode自帶的svn代碼托管工具有關(guān),怎樣消除:
1姐赡、代碼中 某文件后面有 “M” 標(biāo)記厚柳,表示該文件已被修改,需要 commit.
(右鍵該文件 -> source control -> commit selected file...)
2熊杨、代碼中 某文件后面有 “A” 標(biāo)記曙旭,表示該文件是新添加的,已受SVN管理晶府,需要 commit.
(右鍵該文件 -> source control -> commit selected file...)
3夷狰、代碼中 某文件后面有 “?” 標(biāo)記,表示該文件是新添加的郊霎,并且脫離了SVN的管理沼头,首先需要add,然后 commit.
(右鍵該文件 -> source control -> Add书劝,這樣該文件的標(biāo)記就變?yōu)?“A”进倍,然后在 commit)
4、代碼中 某文件后面有 “D” 標(biāo)記购对,表示該文件在服務(wù)器上已被刪除猾昆,這時update的話,可刪除本地的文件骡苞。
5垂蜗、代碼中 某文件后面有 “C” 標(biāo)記楷扬,表示該文件與服務(wù)器的文件沖突。