Skip to content

Set up a dummy Git username/email so that clone doesn't fail

Achilleas Pipinellis requested to merge set-git-user-email into master

When testing to clone different branches than master, the following error would occur:

=> Pulling docs/autodeploy-refactor of https://gitlab.com/gitlab-org/gitlab-ce.git
From https://gitlab.com/gitlab-org/gitlab-ce
 * branch            docs/autodeploy-refactor -> FETCH_HEAD

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@runner-4e4528ca-project-1794617-concurrent-0.(none)')

Example job: https://gitlab.com/gitlab-com/gitlab-docs/-/jobs/30858528

Merge request reports