7.修改版本库文件时的文件标志
我们知道未跟踪文件前面有红色的??标记

未跟踪文件前面有红色的??标记
然后将该文件提交【git add】到暂存区时的文件标志为绿色A

enter description here
使用【git commit 】将文件提交到版本库,工作区和版本库一样,此时为未修改状态,可使用git status查看版本库状态

git status查看版本库状态
此时我们对test.txt进行修改(增加1111)那么对已提交到版本库的文件进行修改,还未提交到暂存区的文件标志是红色M(工作区和版本库有差异时为红M)

对已提交的文件进行修改
对已提交到版本库的文件进行修改,还未提交到版本库的文件标志是绿M(暂存区和版本库有差异时为绿M)

修改文件的状态流程