作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
即使在执行 git add -A 之后,当我运行 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: src/cartographer (modified content, untracked content)
# modified: src/cartographer_ros (untracked content)
#
no changes added to commit (use "git add" and/or "git commit -a")
知道如何解决这个问题吗?
最佳答案
这与-A
选项无关:修改的内容,未跟踪的内容意味着这些文件夹是 submodules 。
这些子存储库包含未跟踪或已修改的文件。
您需要:
但是,如果这些更改纯粹是本地的并且可以忽略(意味着任何使用您当前更改再次克隆您的存储库的人仍然能够使您的程序工作而而无需子模块中的任何更改) ,那么您可以忽略 git status
输出。
关于git add -A 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46677642/
我是一名优秀的程序员,十分优秀!