git管理的项目中添加了另一个远程仓库的项目,导致无法提交子文件夹
  • 删除.git:rm -rm .git
  • 清除缓存:git rm –cached directory
  • 添加git跟踪:git add directory

注:directory为子文件夹的路径。