Skip to content

Do not default user name and email / force config

I recently noticed all my contributions to GitLab have been going in anonymously (as gitlab@local.local)

I raised the issue on Gitter and it was suggested running;

git config --global user.email myrealemail
git config --global user.name "My Real Name"

Should fix things...

And it is likely the issue comes from https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/b220459c05eaa7cf604ca3cad3ea202cb9d16114/Vagrantfile#L101

  sudo -u $DEV_USER -i bash -c "git config --global user.name 'GitLab Development'"
  sudo -u $DEV_USER -i bash -c "git config --global user.email gitlab@local.local"

I'm a bit disheartened that now, I will lose credit for all of my contributions. I wonder if there is a way to identify and update/fix them?

But getting over that... can we stop setting the default? And ensure that anyway spinning up a new GDK instance is required to enter their name/email before they can begin?

It may be in the documentation somewhere... but getting GDK up and running has been a nightmare and often requires half a dozen attempts, so it's quite easy to miss a step when having to rush through it so frequently.

Thanks