英文:
"Github.com" go packages not showing in remote repository in Bitbucket
问题
当我将我的Go代码推送到远程的Bitbucket仓库时,我在github.com的包文件夹中看不到我的文件,而是看到了这个(这是我在Bitbucket仓库中期望找到我的Go文件的屏幕截图):
我使用以下命令将代码推送到远程仓库:
git add .
git commit -m "message"
git push -u origin master
当我登录Bitbucket账户时,我期望在"drakecheckin/src/github.com/coopernurse"目录下看到我的Go文件。然而,我没有看到我的Go文件,而是看到一个指向一堆字符和数字的箭头。
英文:
When I push my go code into my remote bitbucket repository, I don't see my files in github.com package folder instead I see this (this is a screen shot of my bitbucket repository, where I expect to find my go files):
I used this command to push my code into my remote repository:
git add .
git commit -m "message"
git push -u origin master
When I log into my Bitbucket account, I expect to see my go files inside the "drakecheckin/src/github.com/coopernurse" directory. However I do not see my go file instead I see an arrow pointing to a bunch of characters+numbers.
答案1
得分: 1
go get
会将GitHub仓库克隆到您的gopath的适当文件夹中。您在BitBucket上看到的是一个子模块。如果您希望将其纳入版本控制,可以将该文件夹视为子树。
英文:
Go get
will clone github repositories into the appropriate folder of your gopath. What you're seeing in BitBucket is a submodule. You can treat the folder as a subtree if you'd like to check it into version control.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论