GitHub projects “un-clickable” in repo

后端 未结 1 1389
夕颜
夕颜 2020-12-11 10:41

I have a very strange problem and I cannot get down to the bottom of it. I have pushed some projects to my Repo on GitHub and two of them are black and un-clickable and I ha

相关标签:
1条回答
  • 2020-12-11 11:10

    Those are nested git repo whose SHA1 has been recorded as gitlink (even though they are not submodules), a special entry in the index.

    It means you must have .git folder under those two directories in your local machine.

    One possible option would be to:

    • remove those two folders (followed by a git add -A ., git commit -m "remove nested git repos")
    • add them back as submodule: git submodule add /url/to/rpeo/RectionTester, then add, commit and push)

    From there, a those folders still won't be clickable on GitHub, but at least a git clone --recursive of your main repo will be enough to get their content back locally.

    0 讨论(0)
提交回复
热议问题