【问题标题】:Upload files to Gitlab, but show as subproject将文件上传到 Gitlab,但显示为子项目
【发布时间】:2017-10-17 13:40:30
【问题描述】:

我尝试将文件夹the_one_simulator上传到Gitlab,但是该文件夹是作为子项目上传的,如下图。

the_one_simulator 最初是 Bitbucket 中的存储库。我只是将它复制到nc_ptn,并在nc_ptn/ 下运行以下命令。

git add .
git commit -m "Add the ONE simulator"
git push -u origin master

如何将the_one_simulator下的所有文件上传到Gitlab?

我删除了the_one_simulator/.git/,尝试了git add .,但是遇到了如下问题,

$ git add .
Assertion failed: (item->nowildcard_len <= item->len && item->prefix <= item->len), function prefix_pathspec, file pathspec.c, line 317.
Abort trap: 6

【问题讨论】:

    标签: gitlab git-commit git-add


    【解决方案1】:

    在 SO 上有一个类似的问题,gyim 很好地回答了这个问题。在https://stackoverflow.com/a/1789374/5385187 上查看他们的答案,这应该为您提供使子模块成为常规目录并将文件提交到顶级存储库所需的所有信息。

    【讨论】:

      猜你喜欢
      • 2019-03-24
      • 2021-12-30
      • 1970-01-01
      • 1970-01-01
      • 2015-08-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多