title: How do you run a git connection / credential check?
body: <p>I want to test that a set of git credentials work, but my computer is set up to work with some default credentials. How can i run a git connection check?</p>
  
  <p>I've tried setting:</p>
  
  <pre><code>[credential]
      username = example
  </code></pre>
  
  <p>but it still successfully runs a pull, i guess it's using the global credentials but i'm not sure where these are stored.</p>
  
  <p>Is there a quick command to just test credentials? This is ideally what i'm looking for</p>