eclipse - 在 Eclipse git 中使用 native git 而不是 jgit?

标签 eclipse git egit jgit aws-codecommit

有什么方法可以配置 egit 以使用您的 native (操作系统)git 而不是 jgit 实现?如果没有,是否有替代的 git Eclipse 插件?

EDIT #1 - 我应该注意,AWS CodeCommit 使用 credential helper对于 auth,来自 .gitconfig:

[credential]
    helper = !/usr/local/bin/aws --profile CodeCommitProfile codecommit credential-helper $@
    UseHttpPath = true

我猜这是 CodeCommit 特有的东西,不在 jgit 中。

最佳答案

EGit严格使用 JGit , Git 的 Java 实现。

Aptana Sudio3 中的 Git 插件似乎嵌入在产品源 ( github.com/aptana/studio3 ) 中,但使用的是原生 Git。

有一类jgit.transport.AmazonS3 ,如 this question 中所示和 this one (setting IAM) .

有一个有趣的讨论in this thread这可以提供有关修补内容的线索:

Having looked at how JGit access the S3 host, JGit tries to access the bucket using virtual hosted style requests - http://bucketname.s3.amazonaws.com/ - this request style works fine with buckets in the US Standard zone, but for other regions S3 redirects it with HTTP 307 redirect to the correct region.

It seems that jgit does not handle this HTTP 307 redirect correctly, and will need to implement behavior to correctly handle redirects by S3.

关于eclipse - 在 Eclipse git 中使用 native git 而不是 jgit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29087558/

相关文章:

git - 让 TortoiseGit 在 jupyter 笔记本上使用 nbstripout 运行 git diff.textconv 过滤器

eclipse - 在Eclipse中使用EGit推送到远程Git repo时,我应该选择什么?

eclipse - Egit ssh 问题

eclipse - 我无法在 eclipse 中选择 Qvga 240x320

eclipse 中 MySQL 的 python 问题

java - 导出多个 jar 文件 - 可扩展性问题

eclipse - 如何在 Windows 上的 Eclipse 中设置 Clang 工具链?

git - 为什么 gh-pages 选项不再可用?

linux - 你如何使用 gitg 推送代码?

eclipse - 将本地 EGit 存储库导出到本地 GitStack 存储库