Visual Studio的2015年社区:承诺GitHub上通过命令行产生不可访问的文件...? [英] Visual Studio 2015 Community: Commit to github via command line produces inaccessible file...?
问题描述
我创建在Github上一个新的回购,并按照指示。
I create a new repo on Github and follow the instructions.
然后我打开命令提示符,然后按照Github上的说明。
Then I open Command Prompt and follow Github's instructions.
图片是我得到...这似乎是包含我的项目,是不可访问的文件。
The picture is what I get...what appears to be file containing my project that is inaccessible.
我是什么做错了吗?
推荐答案
这是不是一个无法访问文件,而是一个嵌套的git仓库。
This is not an "inaccessible file", but a nested git repo.
据记载,在主混帐回购协议(在GitHub上公布),作为 gitlink ,如在索引 pecial条目,并显示为灰色图标
It is recorded in the main git repo (published on GitHub) as a gitlink, a special entry in the index, and is displayed as a gray icon.
如果你真的想要的内容,你应该把它改造为一个子模块。结果
因此,这gitlink点什么,因为没有办法知道,回购的远程URL(仅适用于它的SHA1这是什么gitlink记录)
If you really want its content, you should transform it as a submodule.
As such, that gitlink points to nothing, as there is no way to know the remote url of that repo (only its SHA1 which is what the gitlink records)
这篇关于Visual Studio的2015年社区:承诺GitHub上通过命令行产生不可访问的文件...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!