title: Why does using "sudo" use root user as the context for some operations, and not for others?
body: <p>When using <code>sudo</code> with <code>git</code> commands, i noticed that:</p>
  
  <p><code>sudo git push</code> uses the ssh key of the <code>root</code> user. But,</p>
  
  <p><code>sudo git commit [etc..]</code> uses the git author that is configured for the original user account.</p>
  
  <p>Why is this so? How does <code>sudo</code> decide what context to do things in?</p>