If i try develop --local git@github.com<>.git, the julia repl ignores my carefully crafted ssh config file and asks for my private key location. My private keys are not stored locally and are accessed through a 2fa agent - which works with everything else in my quite diverse ecosystem.
Is there anyway to get julia too look for keys via .ssh/config?
I think there is no current way of making it honor the .config. Most people just clone the repo via the git command line program outside of the REPL and then dev the local repo inside it.
I believe by default Julia will still use its own libgit2, but in 1.7 you can set the environment variable JULIA_PKG_USE_CLI_GIT=true to force it to use your system git instead.
Edited to fix typos…
Sorry to bump an old one, but maybe this will help some people. This worked for me, not sure if it’s the best solution or will work for everybody.
The environment variable is set in Julia with:
julia> ENV["JULIA_PKG_USE_CLI_GIT"]=true
If you want this behavior always (which I think many do), then you need to put this in a startup.jl file. If you don’t have one of those already, it goes here: