Commits occurring as "unknown" even though username set

485 views
Skip to first unread message

Matthew Shapiro

unread,
Jun 1, 2011, 10:49:55 PM6/1/11
to GitExtensions
I was wondering if anyone could shed some light on an issue I just
noticed.

A month ago I bought a new laptop as my old one died. I installed the
latest Git Extensions, set my Username and Email in Global Settings to
be what they used to be (the Checklist screen is all green) and
checked out my code from github. Unfortunately I have just noticed
that something is not working correctly, as every time I commit (even
locally, so I doubt it's a github issue) my commits are being
committed as "unknown" rather than "mshapiro" (the value I set in the
Global Settings -> Username field). What's worse is that they are
being pushed to github as "unknown" as well, so my commits are not
being associated to my account.

As a self admitted newbie to Git, whose only workings has been through
Git Extensions, can someone give me a hint on why my commits are not
being correctly associated?

Thanks!

William Swanson

unread,
Jun 1, 2011, 11:29:40 PM6/1/11
to gitext...@googlegroups.com
On Wed, Jun 1, 2011 at 7:49 PM, Matthew Shapiro <kall...@gmail.com> wrote:
> A month ago I bought a new laptop as my old one died.  I installed the
> latest Git Extensions, set my Username and Email in Global Settings to
> be what they used to be (the Checklist screen is all green) and
> checked out my code from github.  Unfortunately I have just noticed
> that something is not working correctly, as every time I commit (even
> locally, so I doubt it's a github issue) my commits are being
> committed as "unknown" rather than "mshapiro" (the value I set in the
> Global Settings -> Username field).  What's worse is that they are
> being pushed to github as "unknown" as well, so my commits are not
> being associated to my account.

I've noticed that the GitExtensions settings dialog doesn't always
work correctly. Try popping open a git command prompt and doing a "git
config --list | grep user". You should get output like below:

$ git config --list | grep user
user.name=Matthew Shapiro
user.email=kall...@gmail.com

If you don't get any output, git doesn't know about your settings. You
can always set the options from the command-line like this:

git config --global user.name "Matthew Shapiro"
git config --global user.email "kall...@gmail.com"

If you do that, the command line above should then give the correct
output. Hope that helps. I don't know what causes the bug in
GitExtensions.

-William

Matthew Shapiro

unread,
Jun 1, 2011, 11:37:19 PM6/1/11
to GitExtensions
Yep that was the issue, and the git commands fixed it.

Thanks a lot :)

On Jun 1, 11:29 pm, William Swanson <swanson...@gmail.com> wrote:
> On Wed, Jun 1, 2011 at 7:49 PM, Matthew Shapiro <kalldr...@gmail.com> wrote:
> > A month ago I bought a new laptop as my old one died.  I installed the
> > latest Git Extensions, set my Username and Email in Global Settings to
> > be what they used to be (the Checklist screen is all green) and
> > checked out my code from github.  Unfortunately I have just noticed
> > that something is not working correctly, as every time I commit (even
> > locally, so I doubt it's a github issue) my commits are being
> > committed as "unknown" rather than "mshapiro" (the value I set in the
> > Global Settings -> Username field).  What's worse is that they are
> > being pushed to github as "unknown" as well, so my commits are not
> > being associated to my account.
>
> I've noticed that the GitExtensions settings dialog doesn't always
> work correctly. Try popping open a git command prompt and doing a "git
> config --list | grep user". You should get output like below:
>
> $ git config --list | grep user
> user.name=Matthew Shapiro
> user.email=kalldr...@gmail.com
>
> If you don't get any output, git doesn't know about your settings. You
> can always set the options from the command-line like this:
>
> git config --global user.name "Matthew Shapiro"
> git config --global user.email "kalldr...@gmail.com"

Robin Luiten

unread,
Jun 2, 2011, 12:13:09 AM6/2/11
to gitext...@googlegroups.com
There was a bug in v 2.21 that didnt set the user stuff correctly if you didnt allready have it set
It was fixed in 2.22 i believe.

Henk Westhuis

unread,
Jun 2, 2011, 1:00:07 PM6/2/11
to gitext...@googlegroups.com
What version of Git Extensions are you using? There was a bug causing this behaviour, but this should be fixed in version 2.22.

> Date: Wed, 1 Jun 2011 19:49:55 -0700
> Subject: Commits occurring as "unknown" even though username set
> From: kall...@gmail.com
> To: gitext...@googlegroups.com

Matthew Shapiro

unread,
Jun 2, 2011, 5:28:02 PM6/2/11
to GitExtensions
I don't know what version I was originally using after re-installing
my machine, but it was around May 1st. After I noticed the issue last
night I downloaded and installed the latest MSI (prior to posting
here) and saw the issue persist. However, the issue could have
persisted due to my attempts at changing the global settings being in
the older build and not the newer build.

On Jun 2, 1:00 pm, Henk Westhuis <henk_westh...@hotmail.com> wrote:
> What version of Git Extensions are you using? There was a bug causing this behaviour, but this should be fixed in version 2.22.
>
>
>
>
>
>
>
> > Date: Wed, 1 Jun 2011 19:49:55 -0700
> > Subject: Commits occurring as "unknown" even though username set
> > From: kalldr...@gmail.com
Reply all
Reply to author
Forward
0 new messages