PC无法从Gitlab找到彼此的分支机构

发布于 2025-02-12 15:33:04 字数 224 浏览 0 评论 0原文

我在家和办公室(在两台不同的计算机中)工作。 例如,当我在“ Somebranch”中在家工作,然后下一个去办公室尝试获得此“ Brangranch”时,我看不到它。 两台计算机都可以使用连接到GitLab的两个不同的SSH键。

git提取起源某些文化:某些文化 或者 git提取起源 - A

无济于事。 我认为我可以将SSH键从一台计算机复制到另一台计算机,也许会有所帮助。 但是IDK。看起来很奇怪

I work from home, and from office( in two different computers ).
For instance, when i work from home in "someBranch", and next go to office and try to get this "someBranch", i cant see it.
Both computers work with two different ssh keys that connected to gitlab.

git fetch origin somebranch:somebranch
or
git fetch origin -a

dont help.
I think that i can just copy ssh key from one computer to another, and maybe it'll help.
But idk. It looks weird

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

感情废物 2025-02-19 15:33:05

您是否检查了此处建议的内容:

我如何查看遥控器git分支?

(获取远程存储库后,您需要结帐基于原始/某些文献的本地分支,以遵守您的示例。)

Have you checked what's recommended here:

How do I check out a remote Git branch?

(After fetching the remote repo, you need to checkout a local branch based off of origin/someBranch, to stick to your example.)

怕倦 2025-02-19 15:33:05

我只是知道这一切都很好。除了一件事外,我做了适当的事情:吉特拉布(Gitlab)有一个属性,当您合并在“ Master”中时:“您想删除源分支吗?”

默认情况下检查了此框。

I just understood that is all works well. And I was doing everything properly, except one thing: Gitlab has a property that asks you when you merge in "master": "Do you want to delete source branch ?"

And this box was checked by default.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文