zoukankan      html  css  js  c++  java
  • Xcode的小标记旁边的文件的名称的作用

    这两天老板教我要注意Xcode该文件名以小标记权。例如:



    这里的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 ./*了,那样大部分场合会出现冲突。

    另外,在打开一个编辑一个project时,也能够通过这些小标记高速定位我们要编辑的文件,很便利。


    參考资料:

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


    版权声明:本文博主原创文章。博客,未经同意不得转载。

  • 相关阅读:
    对象属性操作-包含kvc---ios
    UserDefault的使用,保存小数据到本地-iOS
    单例模式-ios
    值类型和引用类型
    [fn]焦点图JQ插件版
    [f]区间随机数函数
    css3动画特效集合
    js中的事件代理(委托)
    Nodejs入门【转载】保留备用
    canvas打字效果
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/4872366.html
Copyright © 2011-2022 走看看