Ask coding questions

← Back to all posts
Changing the Git user info
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:

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

Voters
shamshung
Comments
hotnewtop
shamshung

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