Reputation: 1212
I'm trying to push to my github account from Intellij. Everything is working correctly. However, when I go from the browser into Github, instead of my github username the name "DontNeedGithubAccount" is being shown for the commits. I'm surprised that Google only has a few entries when searching for "DontNeedGithubAccount" but none of them are even remotely helpful.
Upvotes: 0
Views: 56
Reputation: 1212
Thanks to Ped7g, I figured it out: In your git config (.git/Config), you need to add
[user]
name = github_username
email = [email protected]
You can also achieve this by doing (use --local for current or --global for all repos)
git config --local user.name github_username
git config --local user.email [email protected]
The username must match the one on Github. If you additionally provide the same email you can click on your username and get to your account.
Upvotes: 1