- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我刚刚使用 EGit 从 Eclipse Juno 连接到 GIT,并成功克隆了某个远程存储库。在克隆过程中,我输入了我的 Github 用户名和密码,但选择不保存它们。
然后我尝试“从上游获取”。我收到此错误:
https://github.com/biunlp/nlp-lab.git: not authorized
我没有机会输入我的用户名和密码...
这很奇怪,因为我连接到这个存储库是为了克隆...
最佳答案
2022 年更新:在接下来的内容中,始终使用:
Remotes > origin > <your push url>
”
(来自User Guide - Resource Context Menu)
如果您想访问同一台服务器上的多个存储库而无需多次提供相同的凭据,您可以使用 .netrc。这样,eGit 将使用您提供的配置。
.netrc
的文本文件(在 Windows 中为 _netrc
)在用户主目录中。machine my.server1.com login yourUserName password yourPassword machine my.server2.com login yourUserName password yourPassword
The Stash documentation contains more information about .netrc
Security issue The problem with using .netrc
this way is that the password is visible in plain text. Refer to this answer in Stackoverflow to solve that problem.
More secure option (2022): EGit (from issue 441198) can be made (with an extension) to recognize a native Git credential helper, using a secure encrypted cache:
install a native Git
install the GCM (Git Credential Manager), which is cross-platform, and already package with Git For Windows for instance.
instruct EGit to look for credentials in the GCM: gitflow-incremental-builder/gitflow-incremental-builder
register your password or token in said GCM
printf "Host=my.server1.com\nprotocol=https\nusername=yourUsername1\npassword=passwd1" | \
git credential-manager-core store
# and:
printf "Host=my.server1.com\nprotocol=https\nusername=yourUsername1\npassword=passwd1" | \
git credential-manager-core store
寻找可执行文件 git-credential-manager-core
, 并将其文件夹添加到您的 %PATH%
/$PATH
.
关于eclipse - egit - 未授权,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14259265/
问题: 我发现 EGit 很棒并且大量使用它,但它可能非常慢。如果需要几分钟才能完成 C 版本的 git (Cgit) 在不到几秒钟的时间内完成的操作,这可能会令人沮丧。 所有操作都比 Cgit 慢得
最初我遇到了与中描述的相同的问题 egit - not authorized 。 首先,我成功从 Bitbucket 克隆了存储库。 然后,我尝试获取并收到错误“未授权” 但是,当我使用建议并单击“更
我使用 Eclipse 3.7 和 EGit 1.0。如果我在 Eclipse 工作区中创建存储库(作为项目的子文件夹),一切正常。但显然这是不推荐的,所以我想在其他地方建立一个存储库。但这并没有按预
那么让我设置一下我的场景。我在 Spring Tool Suite (Eclipse 4.5.1) 中使用 EGit 4.1.1。我和精通技术的同事从远程 URL 克隆了相同的 git 存储库。我的技
我已经启动了 Eclipse EGit。在某些场景下确实不全面。 我有本地文件,例如pom.xml 改变了。在 git 服务器上,此文件已更改。我做 pull,EGIt 说: Checkout con
我可以从命令行进行克隆,但不能通过 EGit (Eclipse) 进行克隆。广泛的谷歌搜索没有产生答案。这已经被问过很多次了,我几乎尝试了所有建议的东西。 我不断收到“无法打开 git-upload-
刚刚安装了 EGit 附带的 Eclipse 4.3 (Kepler)(我将其更新为 EGit 3.2.201312181205-r)和 Git for Windows .我在现有 Eclipse 工
是否可以像使用 C git git merge myBranch --no-ff --no-commit 那样在没有提交的情况下合并分支? ? 存储库设置,如 merge.ff = no或 merge
我在 Github 上有一个本地仓库和一个远程仓库。我刚刚创建了两个新的本地分支,Documentation 和 Development,使用 origin/master 作为上游源。 我如何将这些新
我创建了一个新的分支 A 来做一些 master 的工作,做了一些工作,做了一个本地提交。 然后我创建了一个分支 B 来做一些 master 的工作,做了一些工作并提交了它。然后我将它合并到 mast
我想使用 EGit 创建一个新标签。根据the manual有两种方法: 选择 团队 > 高级 > 标记... 但我没有 高级 中的子菜单团队 菜单。 执行创建标签... 在历史 View 中的提交上
我在推送到 github 存储库时收到此消息。您能告诉我修复它的步骤吗?我只推了一次就成功了。但是,当我更新一个项目并尝试推送我的第二次提交时,它显示“主拒绝非快进”并且不允许我推送。请解释一下程序。
我已经使用 EGit 将我的东西上传到 github 几个月了。 但是很晚了我没有看到哪些文件被更改了,我也不知道为什么。请帮忙。 如您所见,我更新了一些文件,但在文件部分看不到文件列表。 最佳答案
当我使用 EGit 从远程分支创建新分支时,我得到了错误的远程跟踪设置: 我从远程分支 refs/heads/master 创建本地分支 feature1 并立即推送到上游。在我的 .git/conf
我似乎无法弄清楚。我一直在导入,但是从存储库中没有任何文件。 我有一个本地仓库,其中有一个已 checkin 的grails项目。现在,我想将这些文件导出到eclipse中的新项目中。 (使用EGit
当前使用 Eclipse Mars.1 并从 Eclipse MarketPlace 安装 EGit。 Eclipse EGit 是否具有与 SourceTree 类似的功能,其中您可以选择分支内的
当我的工作区中当前有版本 A 时,我想在 Eclipse 中回滚到以前的项目版本 B,因为 A 中存在一些错误,我只想返回到版本 B 而不进行合并等。如何,在 EGit 中,我是否可以完成此操作并获得
我用了一段时间的 git,现在我想用 eGit 来集成 Eclipse。 我对“添加到索引”操作行为有疑问。它的行为是否与 git add 命令完全一样? 让我们考虑以下示例: 对文件进行一些更改(我
我正在尝试使用 Egit 在 Eclipse 中 checkout 一个新分支,但我一直收到相同的消息: 我尝试以任何可能的方式处理这个问题。选择“提交”或“存储”只告诉我没有要存储的更改。选择“重置
我当时在 Eclipse 中开发一个 Android 项目,然后我决定将其 Git。作为新手,我没有在项目的父项目中创建本地存储库,而是在 C:\Users\Little\.git\LocalRepo
我是一名优秀的程序员,十分优秀!