【发布时间】:2013-09-23 23:46:13
【问题描述】:
我在一个想要推送到 Github 的目录中。 git status 告诉我:
On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
# ../directory1/
# ../directory2/
# ../directory3/
# ../directory4/
nothing added to commit but untracked files present (use "git add" to track)
这些目录是我正在工作的目录的后退一步。 它没有向我显示真实目录项目中的更改。 有什么想法吗?
【问题讨论】:
-
似乎在带有
directory{1..4}的分支中有一个.git文件夹,而不是实际项目所在的位置。那正确吗?那么你可能在错误的文件夹中运行了git init。