如何在 Xubuntu VM 上使用 Eclipse 中的 EGit 从帐户推送到 Github 上的远程仓库?

How to push from account to a remote repo on Github using EGit from Eclipse on a Xubuntu VM?

我是一个相对较新的程序员,几周前才开始使用 EGit 进行系统编程 class。

我能够从 Eclipse 上的本地存储库配置 Github 和 commit/push 上的存储库(它会正确更新存储库),但问题是当我这样做时从我的 Xubuntu VM 上的用户而不是我的 Github 帐户上推送。

在推送过程中出现提示时,我通过 Eclipse 登录(我的凭据是正确的),但是当查看 Github 上的存储库时,它显示为我在 Xubuntu VM 上的帐户的用户名。

我将如何配置 EGit 以作为我的实际 Github 帐户而不是本地用户推送?

以下是帮助我解决问题的方法(来自 this thread),以及 howlger 的评论:

Click Window > Preferences > Team > Git > Configuration
Click Add Entry and enter the key value pairs:

Key: user.name
Value: YourUsernameHere

And

Key: user.email
Value: YourEmailHere