Github灰色/不可点击目录

时间:2016-04-18 19:28:12

标签: github git-submodules

这显然是一个子模块目录。我想在该应用程序的目录中有一个.submodule文件夹或/和.git文件夹,但我没有。 (我可以在finder上看到所有隐藏的文件)我拉动并推动所有内容都是最新的。

enter image description here

来自GitHub projects "un-clickable" in repo

的信息

我已完成Errors prevented startup: While processing files with webpack:webpack (for target os.osx.x86_64): src/server.js: ./~/juice/index.js Module not found: Error: Cannot resolve 'file' or 'directory' ./package in pathToProject/node_modules/juice resolve file pathToProject/node_modules/juice/package doesn't exist pathToProject/node_modules/juice/package.js doesn't exist pathToProject/node_modules/juice/package.jsx doesn't exist pathToProject/node_modules/juice/package.css doesn't exist pathToProject/node_modules/juice/package.less doesn't exist resolve directory pathToProject/node_modules/juice/package doesn't exist (directory default file) pathToProject/node_modules/juice/package/package.json doesn't exist (directory description file) [pathToProject/node_modules/juice/package] [pathToProject/node_modules/juice/package.js] [pathToProject/node_modules/juice/package.jsx] [pathToProject/node_modules/juice/package.css] [pathToProject/node_modules/juice/package.less] @ ./~/juice/index.js 15:18-38 它显示给我的唯一回购。

来自What does a grey icon in remote GitHub mean

的信息

有趣的是,当我在我的仓库git remote -v中执行此命令时,它引用了有问题的应用git submodule update --init

来自What is this grey git icon?

的信息

当我No submodule mapping found in .gitmodules for path 'Capstone Blog'时,它知道哪个应用有问题。 git submodule deinit .

来自What is the current way to remove a git submodule?

的信息

2 个答案:

答案 0 :(得分:1)

我假设问题是由于我复制了曾经有.git文件和其他一些git文件的整个目录引起的。我将这些文件复制到新的仓库后删除了这些文件。哪个没有做任何事情,我仍然遇到同样的问题。所以这就是我所做的。

  1. 我使用<div class="row"> <label for="foo">Foo</label> <input type="text" name="foo"> </div>完全删除了该目录。

  2. 然后我复制了.stone文件中Capstone EXCEPT中的所有文件。

  3. 现在正在运作

答案 1 :(得分:0)

我做了2个回购,repo1和repo2。添加了一个文件并将它们都推送到github。

cd repo1
git submodule add git://clone/url/for/repo2.git
git add .
git commit -m "Adding repo2"
git push origin master

结果:

enter image description here

.gitmodules的内容:

[submodule "repo2"]
    path = repo2
    url = git@path/to/repo2.git

值得一提的是:是否可以在github上获得Capstone博客?