<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tilwa Qendov</title>
    <description>The latest articles on DEV Community by Tilwa Qendov (@tqdv).</description>
    <link>https://dev.to/tqdv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F25475%2Fb99ae236-5475-4b50-b8a6-dec173ae61b6.png</url>
      <title>DEV Community: Tilwa Qendov</title>
      <link>https://dev.to/tqdv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tqdv"/>
    <language>en</language>
    <item>
      <title>git-commit-as: committing on a shared computer</title>
      <dc:creator>Tilwa Qendov</dc:creator>
      <pubDate>Mon, 16 Mar 2020 20:54:19 +0000</pubDate>
      <link>https://dev.to/tqdv/git-commit-as-committing-on-a-shared-computer-40jp</link>
      <guid>https://dev.to/tqdv/git-commit-as-committing-on-a-shared-computer-40jp</guid>
      <description>&lt;p&gt;I recently wrote a script to solve an issue I had committing on a shared computer. I'm sharing it with you because I think it's useful.&lt;/p&gt;

&lt;p&gt;When I'm on a shared computer, I always forget to reconfigure my own name and email in git, so I end up committing under the name of the last person using the computer.&lt;/p&gt;

&lt;p&gt;This is why I wrote git-commit-as, which is used as such:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit-as John &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Committed by John"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Having previously configured a name and email for "John" in the git configuration file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="nn"&gt;[users "John"]&lt;/span&gt;
    &lt;span class="py"&gt;name&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"John Doe"&lt;/span&gt;
    &lt;span class="py"&gt;email&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"john.doe@example.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;You can get the script &lt;a href="https://github.com/tqdv/git-commit-as"&gt;on GitHub&lt;/a&gt;. It's (probably) POSIX-compatible, which means it should work in sh, bash and zsh.&lt;/p&gt;

</description>
      <category>git</category>
      <category>bash</category>
    </item>
  </channel>
</rss>
