【发布时间】:2023-03-29 22:50:01
【问题描述】:
我使用以下命令:
git add *
git commit -am 'updating'
我在下面遇到了:
# On branch master
# 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)
# (commit or discard the untracked or modified content in submodules)
#
# modified: webkomiks (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")
我应该怎么做?
我继续:
git push myrep master
我只看到了 github 中的文件夹,没有看到文件夹中的文件。
谢谢
【问题讨论】:
-
你是在项目根目录下
git add .吗?此外,对于跟踪文件,只需git commit -am"Updating"就足够了,因为-a选项会添加所有跟踪文件。 -
是的,在根目录中。应该在哪里?
-
实际上 - webcomiks 是一个子模块吗?您可以使用命令
git submodule status进行检查,如果出现则它是一个子模块。
标签: git github add git-commit