You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Git CLI获取origin远程对应的upstream仓库URL?

问题解答

上游仓库URL

eog(Eye of GNOME)的官方上游仓库地址是:https://gitlab.gnome.org/GNOME/eog.git

本地Git CLI获取方法

你可以通过以下本地操作获取上游信息:

  • 查看Debian打包配置文件:打开仓库内的debian/control或debian/copyright文件,前者的Homepage字段、后者的上游来源区域会明确标注官方项目地址,这是发行版仓库里最直接的上游信息来源。
  • 检查分支相关配置:如果upstream/latest是本地追踪分支,执行git config --get branch.upstream/latest.remote和git config --get branch.upstream/latest.merge能看到关联的远程信息;如果只是远程分支(origin/upstream/latest),可以执行git log origin/upstream/latest查看该分支的提交历史,上游提交的作者信息或备注里可能包含原始仓库的线索,也可以用git cat-file -p origin/upstream/latest查看分支头部的详细数据。

内容的提问来源于stack exchange,提问作者stanm

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.27 17:32:09