Search code examples
gitgit-config

Changing the Git user info in Replit


I want to run git commit using a different name and email, but Replit is making me use my Replit username (it appears in the .git/config file). When I run this:

git config user.name "First Last"

It reverts .git/config to use my Replit username whenever I reload the repl. How do I prevent that?


Solution

  • Set these environment variables: GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL