gpt4 book ai didi

java - 在不使用 Egit 的情况下在 Eclipse 中使用 Github

转载 作者:搜寻专家 更新时间:2023-10-31 20:20:45 24 4
gpt4 key购买 nike

我最近开始学习 GitHub,以便与我的代码更加协作。我在 Eclipse 上安装了 Egit,并设法让它正常工作,但没有太多问题,但我个人觉得界面非常困惑,更喜欢 Git Shell 或 GitHub 应用程序。

我的问题是如何使用 Eclipse 和 Git Shell 或 GitHub 应用程序,因为我在上面找不到太多。

最佳答案

你可以简单地同时使用它们,只要你的 EGit 和你的 Git shell 知道相同的 HOME,这在 Windows 中并不总是自动的,因为 %HOME% 不是由定义的默认。

这很重要,因为 EGit 会在 %HOME%\.gitconfig 中查找您的全局 Git 配置。

除此之外,您在 Git Bash 中执行的任何操作都会反射(reflect)在您的 Egit 历史记录中。

如果您真的不想在 Eclipse 和外部 shell 之间切换应用程序,则将两者结合起来的一种方法是寻找 Eclipse 的 shell 插件(例如 Wicked Shell ) .

但是,作为janos评论,没有什么能阻止你在同一个仓库中使用 Git Bash、EGit 和 GitHub 应用程序。

In any case, it's good to have EGit, so that he can see the state of the files in Eclipse, without having to switch to Git Bash to check status.
This is how I use it too: do pretty much everything in Git Bash, but profit from seeing status immediately in Eclipse

关于java - 在不使用 Egit 的情况下在 Eclipse 中使用 Github,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20488121/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com