0

我在一个要推送到 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)

该目录是我正在工作的目录的后退一步。它没有向我显示真实目录项目中的更改。任何想法?

4

1 回答 1

3

存储库的根比您期望的位置高一级。您可能在错误的目录中对其进行了初始化。导航到要在其中初始化它的目录,然后重新初始化。通过删除来擦除无意的存储库../.git

于 2013-09-19T02:53:38.600 回答