文件状态
Untracked: 未跟踪文件
定义:没有被git跟踪的文件,通常是新添加的文件,上一个commit不存在的文件
git status 显示内容
缩写:?? (红色)
Untracked files: (use "git add <file>..." to include in what will be committed) new.jsgit status -s 显示内容
?? new.jsUnstage: 修改未在暂存区
定义:所有的更改未提交到暂存区的文件集合(未使用 git add 命令)
缩写:
MD(红色,右面)Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: new.js modified: README.mdgit status -s 显示内容
M new.js D edit.jsStage: 修改已在暂存区状态
定义:所有的更改已提交暂存区且准备提交到库的文件集合:更改包括以下动作
缩写:
MADR(绿色,左面)Untracked files: (use "git add <file>..." to include in what will be committed) new.jsgit status -s 显示内容
M new.js D edit.js
Last updated
Was this helpful?