$ git --version
git version 2.5.3
$ git branch
* feature/branchABC
$ git status -b branchABC
On branch feature/branchABC
Your branch is up-to-date with 'origin/feature/branchABC'.
nothing to commit, working directory clean
$ echo "abc" > abc.cpp
$ git status -b branchABC
On branch feature/branchABC
Your branch is up-to-date with 'origin/feature/branchABC'.
nothing to commit, working directory clean
问题> 在当前文件夹中添加新文件abc.cpp
后,为什么我仍然在 git 中看到消息“工作目录清理”?
谢谢
--更新一--
$ git status
On branch feature/branchABC
Your branch is up-to-date with 'origin/feature/branchABC'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
abc.cpp
nothing added to commit but untracked files present (use "git add" to track)