snipt

Ctrl+h for KB shortcuts

Bash

Set user name and email in git

1
2
3
$ cd my_repo
$ git config user.name "My Name"
$ git config user.email "[email protected]"
https://snipt.net/embed/592baa5bd8747135b386217b49c24eb7/
/raw/592baa5bd8747135b386217b49c24eb7/
592baa5bd8747135b386217b49c24eb7
bash
Bash
3
2019-08-21T01:06:40
True
False
False
/api/public/snipt/18213/
set-user-name-and-email-in-git
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$ <span class="nb">cd</span> my_repo </span><span id="L-2"><a name="L-2"></a>$ git config user.name <span class="s2">&quot;My Name&quot;</span> </span><span id="L-3"><a name="L-3"></a>$ git config user.email <span class="s2">&quot;[email protected]&quot;</span> </span></pre></div> </td></tr></table>
git