Nested GIT Repository mistake method to remove it?

前端 未结 2 668
半阙折子戏
半阙折子戏 2021-01-04 19:11

I have just realised I ran a \'git init\' command from a sub-directory by mistake and then created a master repo at the root of my project.

This was a mistake,

2条回答
  •  渐次进展
    2021-01-04 19:25

    I had created a submodule by mistake by using the git init command in both the parent and the subfolder. Just remove the .git directory and start over with one git init command in the proper directory that you want as the top directory.

提交回复
热议问题