# Code Repository startup error: Failed to configure git email automatically

**URL:** <https://community.palantir.com/t/code-repository-startup-error-failed-to-configure-git-email-automatically/7429>\
**Category:** Ask the Community\
**Tags:** code-repositories\
**Created:** [October 30, 2026, 3:23pm UTC](https://community.palantir.com/t/code-repository-startup-error-failed-to-configure-git-email-automatically/7429 "2026-10-30T15:23:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoubhikMandal](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@SoubhikMandal](https://community.palantir.com/u/SoubhikMandal)\
**Post date:** [October 30, 2026, 3:23pm UTC](https://community.palantir.com/t/code-repository-startup-error-failed-to-configure-git-email-automatically/7429/1 "2026-10-30T15:23:57Z")

</div>

I’m trying to start a Foundry code repository and I get this error: “Failed to configure the git email automatically. Please ensure that ‘git.email’ is configured correctly before pushing to Foundry”. I already tried setting git config user.email and user.name manually, and I also checked whether my Foundry profile email is configured, but these approaches are not working. This is happening in the in-platform Code Repositories environment on repository ri.stemma.main.repository.2356d755-ca64-4045-b22c-cd6a00c9b45a. Has anyone seen this before or know what else to check?
