今天在git上遇到的问题:初始化了一个空的Git仓库,警告:添加了一个嵌套的git仓库
创建了一个空的 Git 代码库
$ git config --global user.name "kaizen_nagoya"
$ git config --global user.email "kaizen@wh.commufa.jp"
$ git init
Initialized empty Git repository in /Users/ogawakiyoshi/Documents/opton/bin/.git/
警告:添加嵌入的Git存储库
$ git add *
warning: adding embedded git repository: プログラムのソース/コンパイラ画面/バックアップ用データ/WindowsFormsApplication2 - コピー (4)/機能追加/closedxml/sourceCode/closedxml
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add <url> プログラムのソース/コンパイラ画面/バックアップ用データ/WindowsFormsApplication2 - コピー (4)/機能追加/closedxml/sourceCode/closedxml
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached プログラムのソース/コンパイラ画面/バックアップ用データ/WindowsFormsApplication2 - コピー (4)/機能追加/closedxml/sourceCode/closedxml
hint:
hint: See "git help submodule" for more information.
请参考以下资料(reference)。
Git/GitHub 分级推荐学习网站完全保存版【2018.12】
https://qiita.com/think-a-lot/items/b3c2e9060f46f5d4ea46
常用的Git命令列表
https://qiita.com/think-a-lot/items/9c185fe41fca269ae0b0
Git命令 最快 实践练习流程【2018.11】
https://qiita.com/think-a-lot/items/817079a952b5f145dbc7
文件历史
版本0.01 初稿 20181122
版本0.02 追記 20190206
版本0.03 标题等追记 20191226