“Github.com”的Go软件包在Bitbucket的远程仓库中没有显示。

huangapple go评论81阅读模式
英文:

"Github.com" go packages not showing in remote repository in Bitbucket

问题

当我将我的Go代码推送到远程的Bitbucket仓库时,我在github.com的包文件夹中看不到我的文件,而是看到了这个(这是我在Bitbucket仓库中期望找到我的Go文件的屏幕截图):

“Github.com”的Go软件包在Bitbucket的远程仓库中没有显示。

我使用以下命令将代码推送到远程仓库:

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):
“Github.com”的Go软件包在Bitbucket的远程仓库中没有显示。

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.

huangapple
  • 本文由 发表于 2015年3月2日 06:02:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/28799661.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定