在位桶上添加远程上游到git repo [英] Adding remote upstream to git repo on bit bucket

查看:150
本文介绍了在位桶上添加远程上游到git repo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GitHub的情况下,我添加了一个名为 upstream 的远程服务器,以便使用以下命令获取对我的分叉回购的最新更改:

  git remote add upstream git@github.com:< original_author_name> /< productname> .git 

在我的github dashborad上显示 git@github.com:< original_author_name> /< productname> .git ,一旦我分叉repo。



但是在Bitbucket的情况下,我总是看到我的分叉回购地点,但不是我从中分出的原始来源。现在我怎么才能找到原始回购的位置,我可以添加为远程 - 上游拉从最初的变化我分叉?

解决方案

如果这些信息(您从其中分叉了您自己的BitBucket Git仓库的上游仓库地址)确实无法在任何地方使用,请尝试列出 拉取请求
$ b $ p

拉动请求屏幕应显示候选上游回购商品名称(您可点击查看其地址)。




In case of GitHub, I added a remote named upstream to pull in latest changes to my forked repo using:

git remote add upstream git@github.com:<original_author_name>/<productname>.git

Here, git@github.com:<original_author_name>/<productname>.git is displayed on my github dashborad, Once I forked the repo.

But in case of Bitbucket, I always see my forked repo location but not the original source from where I fork it from. Now how can I find the location of original repo which I could add as remote - upstream to pull in latest changes from original I forked?

解决方案

If that information (the upstream repo address from which you have forked your own BitBucket Git repo) is really not available anywhere, try at list a pull request.

The pull request screen should display the candidate upstream repo name (that you can click to see its address).

这篇关于在位桶上添加远程上游到git repo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆