GitHub项目“不可点击的”在回购 [英] GitHub projects "un-clickable" in repo

查看:101
本文介绍了GitHub项目“不可点击的”在回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很奇怪的问题,我无法理解它的底部。我在GitHub上推送了一些项目到我的 Repo ,其中两个是黑色的,不可点击的,我不知道为什么。



这是推送:

  C:\ Users \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' git push origin master 
计数对象:108,完成。
使用多达8个线程的增量压缩。
压缩对象:100%(105/105),完成。
写作对象:100%(108/108),3.71 MiB |完成111.00 KiB / s。
总计108(delta 4),重用0(delta 0)
到https://github.com/KeilCarpenter/Home-Projects.git
* [new branch] master - > master

发生了什么事?我完全不知道这些是嵌套的git仓库,它的SHA1被记录为 https://stackoverflow.com/a/16581096/6309\"> gitlink (尽管它们不是子模块),索引中的特殊条目



这意味着您必须拥有 .git 文件夹在您的本地机器的这两个目录下。



一种可能的选择是:


  • 删除这两个文件夹(后跟 git add -A。,git commit -m删除嵌套git repos)

  • 将它们添加回子模块: git submodule add / url / to / rpeo / RectionTester ,然后添加,提交并推送)
  • ul>

    从那里开始,这些文件夹仍然不会在GitHub上被点击,但至少是一个 git clone --recursive 您的主要回购将足以让他们的内容回到本地。


    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 have no idea why.

    This is the push:

    C:\Users\keilc\Documents\GitHub\homeprojects [master +0 ~1 -0]> git push origin master
    Counting objects: 108, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (105/105), done.
    Writing objects: 100% (108/108), 3.71 MiB | 111.00 KiB/s, done.
    Total 108 (delta 4), reused 0 (delta 0)
    To https://github.com/KeilCarpenter/Home-Projects.git
     * [new branch]      master -> master
    

    What is going on? I have no idea at all

    解决方案

    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.

    这篇关于GitHub项目“不可点击的”在回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆