Ask coding questions

← Back to all posts
Changing the Git user info
shamshung (0)

I want to push to GitHub using a different name and email, but Replit is making me use my Replit username. When I run this:

git config user.name "First Last"

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

Comments
hotnewtop
shamshung (0)

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