我在 golang 中使用第三方包,我想将它们添加到我的 git 存储库中,当我键入命令时,git add .出现以下错误
warning: adding embedded git repository: github.com/beorn7/perks
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> github.com/beorn7/perks
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached github.com/beorn7/perks
hint:
如何确保我正确地控制包的版本以及我是否以正确的方式控制第三方包的版本?
这是我的项目结构
Project/
|
src/
|
github.com/
|
packages/
我的 GOPATH 也指向项目目录
慕运维8079593
相关分类