title: Is there a way to query remote repository information without creating a clone?
body: <p>My specific need is to determine the default branch for a given remote repository, which I may not have a local clone for. If I understand correctly, Git doesn't really have a native concept of the &quot;the default branch&quot;, though GitHub and GitLab do. In these cases, I believe that the current remote HEAD is sufficient.</p>
  <p>More generally, is there a Git command I can use to dump information about a remote repository without creating a local clone?</p>
  <p>(<strong>With</strong> a local clone, I can get a bunch of remote information via <code>git remote show origin</code>.)</p>