github更改不会提交进行提交 [英] github changes not staged for commit
问题描述
我有一个非常基本的github安装程序,其中包含一个自述文件,一个目录和另一个带有html文件的目录。在github上,我只能查看自述文件和第一个文件夹,但没有任何内容,并且我收到了这条消息
tc349 ryntc3 $ git add *
tc349 ryntc3 $ git status
在分支主机上
没有为commit提交更改:
(使用git add< file> ...更新内容将被提交)
(使用git checkout - < file>放弃工作目录中的更改)
(提交或放弃子模块中未跟踪或修改的内容)
修改:week1(修改内容)
没有更改添加到提交(使用git add和/或git commit -a)
我觉得如果我要添加所有需要进行演示的应用程序,它不应该成为问题。任何帮助?
是 week1
子模块?
请注意 git status
命令输出中的相关部分:
< blockquote>
(提交或放弃子模块中未跟踪或修改的内容)
尝试 cd week1
并发出另一个 git status
来查看您对 week1
submodule。
请参阅 http://git-scm.com/book/en/Git-Tools-Submodules ,以获取更多关于子模块如何在Git中工作的信息。
I have a very basic github setup with a readme, a directory, and another directory inside it with an html file. On github I can only view the readme and the first folder but none of its contents, and I am getting this message
tc349 ryntc3$ git add *
tc349 ryntc3$ git status
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: week1 (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
I feel like if I am adding all to be staged that it should not be an issue. Any help?
Is week1
a submodule?
Note the relevant part from the output of the git status
command:
(commit or discard the untracked or modified content in submodules)
Try cd week1
and issuing another git status
to see what changes you have made to the week1
submodule.
See http://git-scm.com/book/en/Git-Tools-Submodules for more information about how submodules work in Git.
这篇关于github更改不会提交进行提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!