这是我的问题:
我曾经 push github.com几个文件夹,但其中两个是空的。当我尝试 git status
,它向我展示了
在分支主服务器上
未暂存提交的更改:
<
使用“git add<file>
...”来更新将提交的内容>
<
使用“git --chackout<file>
...”放弃工作目录中的更改>
<
提交或丢弃子模块中未跟踪或修改的内容>
modified:app/model(修改内容)
修改:app/show(修改内容)
提交中未添加任何更改(使用“git add
”和/或“git commit -a
”)
我的本地文件夹不为空,只是在远程文件夹中。如何将这些文件夹中的文件添加到远程存储库中?
附:我试过git add -A .
, git add -u
, git add .
, git submodule --recursive git add -A .
, git submodule --recursive git commit -a -m "Initial commit"
但这没有帮助。
感谢您的帮助!
最佳答案
启动git gui
并单击要暂存的文件。或者使用“阶段已更改”按钮。
关于git - 无法推送修改后的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17294302/