Skip to content
← Back to Community
Changing the Git user info
Profile icon
shamshung

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?

Voters
Profile icon
shamshung
Comments
hotnewtop
Profile icon
shamshung

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