Git 状态 M,T,D,A,U

编程入门 行业动态 更新时间:2024-10-05 17:26:34

Git <a href=https://www.elefans.com/category/jswz/34/1771386.html style=状态 M,T,D,A,U"/>

Git 状态 M,T,D,A,U

在使用git checkout , git status,或git diff files时会出现一些状态标志,M,T,D,A,R,U等等。

如:

# git status -s

A  code_iOS/UnionRich1.0/UnionRich/Png/zhifuImage/payway_icon_wechat@3x.png
A  code_iOS/UnionRich1.0/UnionRich/Png/zhifuImage/payway_icon_zhi@3x.png
M  code_iOS/UnionRich1.0/UnionRich/UnionRich_PrefixHeader.pch
UU code_iOS/UnionRich1.0/UnionRich/controllerView/other/AppDelegate.m
M  code_iOS/UnionRich1.0/UnionRich/controllerView/other/ViewController.m
M  "code_iOS/UnionRich1.0/UnionRich/controllerView/\344\270\252\344\272\272\344\277\241\346\201\257/controller/YTMessageController.m"
M  "code_iOS/UnionRich1.0/UnionRich/controllerView/\346\224\266\346\254\276/controller/CollectMoneyView.m"
M  "code_iOS/UnionRich1.0/UnionRich/controllerView/\346\224\266\346\254\276/controller/ZbarViewController.m"
M  "code_iOS/UnionRich1.0/UnionRich/\347\254\254\344\270\211\346\226\271/Self-adaption/ToolViewAndData.m"
A  "code_iOS\320UnionRich1.0/UnionRich/controllerView/other/ViewController.h"
A  "code_iOS\320UnionRich1.0/UnionRich/controllerView/other/ViewController.m"
A  "code_iOS\320UnionRich1.0/UnionRich/controllerView/other/gtmbase64+XY/NSString+ex.h"
A  "code_iOS\320UnionRich1.0/UnionRich/controllerView/other/gtmbase64+XY/NSString+ex.m"
A  "code_iOS\320UnionRich1.0/UnionRich/controllerView/other/model/UserEntity.h"
A  "code_iOS\320UnionRich1.0/UnionRich/controllerView/other/model/UserEntity.m"
A  "code_iOS\320UnionRich1.0/UnionRich/controllerView/\344\270\252\344\272\272\344\277\241\346\201\257/controller/YTMessageController.m"

A: 你本地新增的文件(服务器上没有).

C: 文件的一个新拷贝.

D: 你本地删除的文件(服务器上还在).

M: 文件的内容或者mode被修改了.

R: 文件名被修改了。

T: 文件的类型被修改了。

U: 文件没有被合并(你需要完成合并才能进行提交)。

X: 未知状态(很可能是遇到git的bug了,你可以向git提交bug report)。

在man git diff-files中可以查到这些标志的说明。

这些状态标志在git的源代码的diff.h文件中被定义。

更多推荐

Git 状态 M,T,D,A,U

本文发布于:2024-02-13 11:38:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1758463.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:状态   Git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!