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

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

    I removed the .git in that particular folder. Then after I ran the command

    git add folder_which_has_deleted_dot_git
    git commit -m "Changed to standalone repo"
    

    Then after that I was able to track the folder and convert it into a common / standalone repository.

提交回复
热议问题