icon

Set Git Credentials

Sets the Git user name and email address used by subsequent Steps in the Workflow.

Sets the global Git identity (user.name and user.email) on the build machine, so every subsequent Step that creates Git commits or tags uses it as the author.

Configuring the Step

  1. Set the Git Username input to the name to use as the Git commit author.
  2. Set the Git Email Address input to the email address to use as the Git commit author.

Both values are written to the global Git config (git config --global), so they apply to every repository on the build machine for the rest of the build.

Troubleshooting

If commits created by later Steps still show a different author, check whether the repository's local Git config or the Step creating the commit overrides user.name or user.email. Local Git config takes precedence over the global one set by this Step.

Useful links

Related Steps

Similar steps

Make sure your repo is clean as a whistle, no uncommitted changes, nothing to hide.

Checks out the repository, updates submodules and exports git metadata as Step outputs.

Generates a changelog for deployment between two tags

Reads the date of the last git commit