android - 如何在eclipse中检查项目的git存储库url?

标签 android eclipse git

每次检查存储库 url 时,我都必须进入 .git 文件夹并检查存储库 url 的配置。

有什么方法可以从 eclipse 中检查项目存储库 url。

最佳答案

(2014 年 6 月)请参阅“Remotes Repositories”部分或 EGit manual :

The "Remotes" node allows for browsing and editing Remote configurations.
Each Remote configuration has a name and either a Push Specification, a Fetch Specification, or both.

If a "Remote Configuration" node or any of its children is selected, the Properties view will show a summary of the Remote configuration.

您应该在 Git Repositories View 中看到上游 repo 的 url:

http://wiki.eclipse.org/images/e/e2/RepoMgrRemoteConfig.png

请注意,在命令行中,您可以键入:

而不是直接进入 .git/config
git remote -v

2016 年 10 月更新,Git in Eclipse :

如“Pushing to other Repositories”中所述,您还可以在“Configure push url”对话框中看到远程 URL:

http://wiki.eclipse.org/images/e/e7/Egit-3.1-ConfigurePushToUpstream.png

关于android - 如何在eclipse中检查项目的git存储库url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24171915/

相关文章:

android - 如何用 mockk 模拟密封类?

android - 如何避免重新加载 Webview - 如果已经加载过一次

c++ - 重载运算符 += C++ 时出错

git - 我如何查看手动解决 git 中的冲突(github、某些应用程序、IntelliJ)

Windows 上的 git 一直显示修改过的文件,即使是新克隆的 repo

java - JGit 仅遍历本地和远程分支并读取文件

android - 如何在 android 中水平居中对齐 Activity 与对话框主题

java - zxing 运行时异常到 android 应用程序

java - 使用 intelliJ IDEA 或 eclipse 替换/更新所有文件中的所有导入语句

java - 实现微调器时遇到问题