Set user name and email to multiple Git repositories

Set up your myrepos and Git repositories according to https://myrepos.branchable.com/.

Add the following in ~/.mrconfig:

[DEFAULT]
## Teach mr how to config user name and email with `mr configusername` and `mr configuseremail`
configusername = git config user.name "Meng Lu"
configuseremail = git config user.email lumeng.dev@gmail.com

Navigate to a path that contains all the Git repositories you would like to set or update user name and email, and run

mr configusername
mr configuseremail

myrepos will print the paths of the Git repositories whose user name and email are updated.

References

blog comments powered by Disqus