GitLab showing computer name + router name as commiter name

I recently reinstalled GitHub Desktop (the Git client I use) and now all my commits I do to a GitLab projects show up from the username “[My mac username]@[My computer name].[Name of my router]” instead of the username I have in the GitLab installation.

What have I done wrong?
How can I fix this?

  • Installing nuget package from GitHub
  • git-upload-pack not found
  • Doxygen for a project managed with git?
  • How to push changes to branch?
  • Git: how to return to a past commit to start a branch keeping all commits?
  • Why does git's cherry picking with more than one commit fail?
  • merge 2 local files
  • how to create a file with the cmd?
  • git diff extended header `index` 2nd hash corresponds to what
  • Egit shows all files as changed
  • github client stuck at 256 files to be commited even though it syncs
  • Is it possible to have your “local” git repo on a server?
  • One Solution collect form web for “GitLab showing computer name + router name as commiter name”

    Git does commits entirely locally on your machine, the site you push those commits just reads them. So your Gitlab account has nothing to do with who you’re committing as. This is critically important for the integrity of who did what and when.

    What you’re getting is the default username from Git. The Git command line client would normally issue you a warning and instructions:

    $ git commit
    [master (root-commit) cc46c07] Foo
     Committer: Michael Schwern <schwern@Windhund.local>
    Your name and email address were configured automatically based
    on your username and hostname. Please check that they are accurate.
    You can suppress this message by setting them explicitly:
        git config --global "Your Name"
        git config --global
    After doing this, you may fix the identity used for this commit with:
        git commit --amend --reset-author
     1 file changed, 0 insertions(+), 0 deletions(-)
     create mode 100644 bar

    Github Desktop likely has its own config. It will use your Github identity, not your Gitlab. Make sure you’re logged in at Preferences->Accounts. Also check Preferences->Advanced and make sure your Git Config identity is correct.

    Git Baby is a git and github fan, let's start git clone.