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

前端 未结 6 1486
一生所求
一生所求 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:36

    If you don't care about the exact version of B A is using, you can keep your current setting (nested git repos).

    You will have the "embedded repo" warning, but beside that, both repos will behave as you expect, each one adding, committing and pushing only their repos.
    Note: you can make that warning shorted/empty with git config advice.addEmbeddedRepo

提交回复
热议问题