News for hackers. Stuff that matters.
Re:Conditional Git Configuration by dig1 on Thursday January 11, 2024 @05:26AM (#38950294)
Nice trick! I'd usually set alias in ~/.ssh/config and set origin to match that alias, e.g.

    Host project-foo
    Hostname github.com
      User git
      IdentityFile ~/.ssh/some_key
Then I'll pull the project with:

    git clone project-foo:/Foo/project.git

There are no comments on this comment yet.