开发者社区> 问答> 正文

git 命令行提交项目报错 ?报错

项目有子目录的话提交报错:
fatal: Pathspec '文件夹' is in submodule 'modules/iphone/文件夹'

我是一层层git add 文件夹 当add到第二层文件夹的时候就报错了;

第二种情况:
我整个项目都在命令行提交

git add -A ;git commit -m “XXX” 报错 Changes not staged for commit:
modified: quHaoCRM (modified content, untracked content)
no changes added to commit

用git add . 也是一样报错 同上;

请大神帮忙啊,急!

展开
收起
爱吃鱼的程序员 2020-06-23 00:43:58 495 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    cdmodules/iphone/文件夹
    gitadd.
    gitcommit

    参考:http://stackoverflow.com/questions/10721624/github-changes-not-staged-for-commit

    gitadd.--force

    问题解决了吗同问在线等...

    2020-06-23 00:44:14
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
新一代高效Git协同模型 立即下载
AGit-Flow:新一代高效Git协同模型 立即下载
AGit-flow:新一代高效Git协同模型 立即下载

相关实验场景

更多