我在AIX 6.1上设置了GIT并且遇到了问题.
我遵循的步骤顺序如下所示:
执行上述所有步骤并给出git status
命令后我得到了foll结果:
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ../index.html
# ./
Run Code Online (Sandbox Code Playgroud)
我知道上面目录中的index.html正在显示,但为什么不显示当前目录中的index-2.html.
文件index-2.html也应该被正确跟踪.
输出显示了当前未跟踪的两件事:
../index.html
- index.html
父文件夹中的文件./
- 当前文件夹,包括其所有内容因此它确实检测到您有一个未跟踪的文件,但由于它对其文件夹一无所知,它只显示该文件夹以累积其所有内容.
如果您添加文件并让Git跟踪它们,它们将正确显示:
git add index-2.html
git add ../index.html
Run Code Online (Sandbox Code Playgroud)