Git 错误:更改未暂存以进行提交
我有我的项目+ RestKit 子模块。当我更改 RestKit 设置时出现错误。我添加了对armv6和armv7架构的支持。
git add .
git add -u
git commit -m "new"
# 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: RestKit (modified content)
#
如何修复此错误。
更新:我不运行 git add RestKit。
UPDATE2:我的项目的结构是:
我将子模块添加为
git submodule update -i
I have my project + RestKit submodule. Error appeared when I changed RestKit settings. I added support armv6 and armv7 architecture.
git add .
git add -u
git commit -m "new"
# 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: RestKit (modified content)
#
How to fix this error.
UPDATE: I don't run git add RestKit.
UPDATE2: The strusture of my project is:
I added submodule as
git submodule update -i
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您显然正在处理子模块,因此您应该使用子模块工作流程:
您可以找到更多信息 这里。
另外:有关子模块的 Git 书籍
You are apparently dealing with a submodule, so you should use the submodule workflow :
You can find more information here.
Also : Git Book on Submodules