Remix.run Logo
est 2 years ago

you don't have to mess with ~/.ssh/config

Just put this in your ~/.gitconfig (or ~/.config/git/personal as in the article)

  [core]
      sshCommand = /usr/bin/ssh -o IdentitiesOnly=yes -i ~/.ssh/IdentityFile2 -a

This makes submodules easy without the `insteadOf`
duskwuff 2 years ago | parent | next [-]

And if you have more than one SSH identity?

est 2 years ago | parent | next [-]

You can also put that in your includeIf confs. I updated the parent comment

dgfitz 2 years ago | parent | prev [-]

Sounds like a different problem.

hinkley 2 years ago | parent [-]

You're missing the fact that if you are going to use git and also ssh into places, you should learn to use the ssh config file.

Yes, there are other ways to do it. Just as there are other ways to enter a building besides just opening the door.

It's the one tool that works consistently across multiple projects.

dgfitz 2 years ago | parent [-]

Wait, ssh has a config file?! And I should learn about it!?

lol, you’re an ass

hinkley 2 years ago | parent [-]

I’ve spent too much of my career picking up after people like you.

dgfitz 2 years ago | parent [-]

You haven’t. That’s cool though, I can understand your frustration.

airtonix 2 years ago | parent | prev [-]

[dead]