xcode 左邊導覽列中,類檔案後面的標記“A”,"M","?"……等符號的含義???,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' 忽略
'?' 未受控
'!' 丟失,一般是將受控檔案直接刪除導致
這些標記跟你使用的代碼託管工具或者xcode內建的svn代碼託管工具有關,怎樣消除:
1、代碼中 某檔案後面有 “M” 標記,表示該檔案已被修改,需要 commit.
(右鍵該檔案 -> source control -> commit selected file...)
2、代碼中 某檔案後面有 “A” 標記,表示該檔案是新添加的,已受SVN管理,需要 commit.
(右鍵該檔案 -> source control -> commit selected file...)
3、代碼中 某檔案後面有 “?” 標記,表示該檔案是新添加的,並且脫離了SVN的管理,首先需要add,然後 commit.
(右鍵該檔案 -> source control -> Add,這樣該檔案的標記就變為 “A”,然後在 commit)
4、代碼中 某檔案後面有 “D” 標記,表示該檔案在伺服器上已被刪除,這時update的話,可刪除本地的檔案。
5、代碼中 某檔案後面有 “C” 標記,表示該檔案與伺服器的檔案衝突。