logoalt Hacker News

silverwindtoday at 3:40 PM0 repliesview on HN

Quite nice. I had to split into two statements to make it work for both https and ssh because of a bug in git:

    [includeIf "hasconfig:remote.*.url:[email protected]:*/**"]
      path = ~/.gitconfig.work
    [includeIf "hasconfig:remote.*.url:https://git.work/**"]
      path = ~/.gitconfig.work