Git: How to make outer repository and embedded repository work as common/standalone repository?

前端 未结 6 1468
一生所求
一生所求 2020-12-05 09:59

I have a big project(let\'s say A repo), and it there one child folder which is come from B repo. I would meet warning like below when I commit fr

6条回答
  •  天命终不由人
    2020-12-05 10:26

    Probably, git reminded the repository. It helped for me:

        git rm --cached your_folder_with_repo
        git commit -m "remove cached repo"
        git add your_folder_with_repo/
        git commit -m "Add folder"
        git push
    

提交回复
热议问题