News for hackers. Stuff that matters.
Re:Use multiple Git SSH identities on a single computer by perdjesk on Thursday July 20, 2023 @08:48AM (#36799693)
includeIf directive supports as well conditions based on configured remote URL. [1]

  [includeIf "hasconfig:remote.*.url:https://client1domain.com/**"]
    path = ~/work/client1/.gitconfig
  [includeIf "hasconfig:remote.*.url:https://client2domain.com/**"]
    path = ~/work/client2/.gitconfig
[1] https://git-scm.com/docs/git-config#Documentation/git-config...

There are no comments on this comment yet.