Set user name and email to multiple Git repositories

Set up your myrepos and Git repositories according to

Add the following in ~/.mrconfig:

## Teach mr how to config user name and email with `mr configusername` and `mr configuseremail`
configusername = git config "Meng Lu"
configuseremail = git config

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.


blog comments powered by Disqus