5
Q
描述Git符號
A
回答
6
如果在終端編寫
git help status
選項列表中會出現,告訴你-s指的是git的狀態的短格式。
如果你去輸出 - >短格式你會發現所有的符號解釋:
Short Format
In the short-format, the status of each path is shown as
XY PATH1 -> PATH2
where PATH1 is the path in the HEAD, and the " -> PATH2" part is shown
only when PATH1 corresponds to a different path in the index/worktree
(i.e. the file is renamed). The XY is a two-letter status code.
The fields (including the ->) are separated from each other by a single
space. If a filename contains whitespace or other nonprintable
characters, that field will be quoted in the manner of a C string
literal: surrounded by ASCII double quote (34) characters, and with
interior special characters backslash-escaped.
For paths with merge conflicts, X and Y show the modification states of
each side of the merge. For paths that do not have merge conflicts, X
shows the status of the index, and Y shows the status of the work tree.
For untracked paths, XY are ??. Other status codes can be interpreted
as follows:
· ' ' = unmodified
· M = modified
· A = added
· D = deleted
· R = renamed
· C = copied
· U = updated but unmerged
Ignored files are not listed, unless --ignored option is in effect, in
which case XY are !!.
X Y Meaning
-------------------------------------------------
[MD] not updated
M [ MD] updated in index
A [ MD] added to index
D [ M] deleted from index
R [ MD] renamed in index
C [ MD] copied in index
[MARC] index and work tree matches
[ MARC] M work tree changed since index
[ MARC] D deleted in work tree
-------------------------------------------------
D D unmerged, both deleted
A U unmerged, added by us
U D unmerged, deleted by them
U A unmerged, added by them
D U unmerged, deleted by us
A A unmerged, both added
U U unmerged, both modified
-------------------------------------------------
? ? untracked
! ! ignored
-------------------------------------------------
相關問題
- 1. 描述SVN符號
- 2. 字體描述符和符號特徵
- 3. 段描述符與門描述符
- 4. git中的分支描述
- 5. GET描述符
- 6. VC++預處理器符號描述
- 7. MPEG-7描述符
- 8. Ext2:組描述符
- 9. KeyPoint描述符OpenCV
- 10. 使用Ferns描述符保存opencv描述符匹配器
- 11. 文件描述符飢餓和阻斷文件描述符
- 12. 全局描述符表和局部描述符表
- 13. 套接字描述符與文件描述符
- 14. git中的分支描述,繼續
- 15. 將git描述爲shell變量
- 16. 獲取Git存儲庫的描述
- 17. Git顏色 - 分支描述文本
- 18. git-diff如何生成大塊描述?
- 19. git回購描述不更新
- 20. 如何檢索Git分支的描述?
- 21. Git上的擴展描述文本
- 22. Git描述給出不同的標籤
- 23. 如何在git中添加長描述
- 24. 在libgit2中執行git描述
- 25. 數據描述符用文字符號(對象創建)
- 26. 核心數據符號排序描述符
- 27. c strcpy文件描述符
- 28. 瞭解Python描述符
- 29. MOXy XMLCompositeCollectionMapping描述符丟失
- 30. SIFT描述符的大小
'git的幫助status' – geoffspear
谷歌: 「混帳地位」 1項: 的https:// WWW .kernel.org/pub/software/scm/git/docs/git-status.html –
在'output - > short format'標題下有非常明確的說明:https://www.kernel.org/pub/software/scm /git/docs/git-status.html#_short_format – meagar