title: Git push uses default username after setting up ssh keys for different accounts
body: <p>I recently setup SSH keys to manage my two git accounts (bitbucket and github). However, whenever I push a commit, the author on those pushes is my computer's name rather than the respective usernames that I use for each account</p>
  <p>Here is my config file:</p>
  <pre><code>#Github
  Host github.com
    HostName github.com
    User git
    IdentityFile ~/.ssh/githubssh
    IdentitiesOnly yes
  
  #Bitbucket
  Host bitbucket.org
    HostName bitbucket.org
    User git
    IdentityFile ~/.ssh/bitbucketssh
    IdentitiesOnly yes
  </code></pre>
  <p>My pushes are authored by <code>MyName</code> rather than by <code>GithubUserName</code> or <code>BitbucketUserName</code>. Running <code>ssh -T </code> shows that both SSH keys are properly connected.</p>
  <p>EDIT: fixed by doing in their corresponding repositories</p>
  <pre><code>$ git config user.name = &quot;myusername&quot; 
  $ git config user.email = &quot;my email&quot;
  </code></pre>
  <p>However, it looks like I have to do this every time I clone a new repository, is there a way to set it so that I don't have to?</p>