I am using third party packages in golang and I want to add them to my git repository and when I type the command git add .
it is giving me the following error
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:
How to make sure that I am version controlling packages correctly and Am I doing the right way of version controlling my third-party packages?
Here is my project structure
Project/
|
src/
|
github.com/
|
packages/
My GOPATH is also pointing to project directory