title: Same domain, multiple git accounts without ssh
body: <p>I've tried to look for a way to match on a path using git config. I've only found (and tested) some mentioned in the link here, among others. <a href="https://stackoverflow.com/q/60470708/11443260">Multiple git accounts: no .ssh/config or SSH agent usage</a></p>
  <p>I have also read through <a href="https://git-scm.com/docs/gitcredentials" rel="nofollow noreferrer">https://git-scm.com/docs/gitcredentials</a> but either didn't understand how to use these wildcards or they just didn't work as I thought they would. I currently have this setup:</p>
  <pre><code>[core]
      editor = \&quot;C:\\Users\\anton\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\&quot; --wait
      sshCommand = C:/Windows/System32/OpenSSH/ssh.exe
  [user]
      name = firstuser
      email = firstuser@gmail.com
  [filter &quot;lfs&quot;]
      process = git-lfs filter-process
      required = true
      clean = git-lfs clean -- %f
      smudge = git-lfs smudge -- %f
  [merge &quot;ours&quot;]
      driver = true
  
  [credential &quot;https://github.com/workuser/*&quot;]
      username = workuser
      useHttpPath = true
      helper = wincred
  
  [credential &quot;https://github.com/firstuser/*&quot;]
      username = firstuser
      useHttpPath = true
      helper = wincred
  
  [credential &quot;https://gitlab.com&quot;]
      username = firstuser@gmail.com
      # useHttpPath = true
      helper = wincred
  </code></pre>
  <p>Using ssh for them worked fine, but I remember it can be an issue when behind a firewall and such.</p>
  <p>It'd be nice if I could just match on the path of git and have it group all paths that match with it to use the same credentials. But perhaps I'm not seeing the issue with that. And if I'm doing something wrong, please tell me!</p>
  <p>Thank you kindly in advance.</p>