pages tagged myrepos http://meng6net.localhost/tag/myrepos/ <p><small>Copyright © 2005-2020 by <code>Meng Lu &lt;lumeng3@gmail.com&gt;</code></small></p> Meng Lu's home page ikiwiki Tue, 16 May 2017 23:59:39 +0000 Examples of using myrepos http://meng6net.localhost/computing/example/examples_of_using_myrepos/ http://meng6net.localhost/computing/example/examples_of_using_myrepos/ computing documentation example git myrepos note software tip Tue, 16 May 2017 23:59:39 +0000 2017-05-16T23:59:39Z <h2>Set user name and email to multiple Git repositories</h2> <p>Set up your myrepos and Git repositories according to <a href= "https://myrepos.branchable.com/">https://myrepos.branchable.com/</a>.</p> <p>Add the following in <code>~/.mrconfig</code>:</p> <pre><code>[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 </code></pre> <p>Navigate to a path that contains all the Git repositories you would like to set or update user name and email, and run</p> <pre><code>mr configusername mr configuseremail </code></pre> <p><code>myrepos</code> will print the paths of the Git repositories whose user name and email are updated.</p> <h2>References</h2> <ul> <li><code>myrepos</code>: <a href= "https://myrepos.branchable.com/">https://myrepos.branchable.com/</a>.</li> <li>Git documentation on configuring user: https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup</li> </ul>