首页 > 其他 > 详细

Xcode中文件名旁边的小标记的作用

时间:2014-07-24 23:06:23      阅读:333      评论:0      收藏:0      [点我收藏+]

这两天老大教会了我要留意Xcode中文件名右边的小标记,例如:

bubuko.com,布布扣


这里的M就是Xcode中类名旁边的一个symbol,还有A,D等,这些标记用于显示当前文件和代码仓库中该文件对比后的状态:

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

作用:

在git add/rm之前,先通过这些小标记看看哪些文件内容被更新了,或者添加了哪些文件,或者删除了什么,然后git add,git rm特定的文件,这样便于git仓库的管理。当然不要直接git add ./*了,那样大部分场合会出现冲突。

另外,在打开一个编辑一个工程时,也可以通过这些小标记快速定位我们要编辑的文件,非常便利。


参考资料:

http://stackoverflow.com/questions/7754850/symbols-meaning-aside-class-name-in-xcode


Xcode中文件名旁边的小标记的作用,布布扣,bubuko.com

Xcode中文件名旁边的小标记的作用

原文:http://blog.csdn.net/jymn_chen/article/details/38092967

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!