简体   繁体   中英

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

I'm a relatively new programmer and have only started using EGit a couple weeks ago for my systems programming class.

I was able to configure a repository on Github and commit/push to it from a local repo on Eclipse (it updates the repo properly), but the problem is that when I do so it pushes from the user on my Xubuntu VM rather than my Github account.

I signed in via Eclipse when prompted during the push (and my credentials were correct), but when looking at the repo on Github it comes up as the User name of my account on the Xubuntu VM.

How would I go about configuring EGit to push as my actual Github account rather than as the local user?

Here's what helped me solve the issue (from this thread ), alongside howlger's comment:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM