-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support use of a particular SSH config file, rather than the user-wide default. #73
Comments
In particular, this is needed for fresh clones, so perhaps it could be integrated at the same time as the other issue #21 for emails. Instead of a clone, maybe do:
Or some other approach. |
Good idea so the property would need to be set in the config and automatically set in the repositories by branchout, that same thing needs to happen for the author email. |
This can be worked around by exporting GIT_SSH_COMMAND rather than relying on one set in config - necessary for an initial clone AFAICT. Maybe that's the way to go? Just have it configured and put it in the env before running the Git commands? Not sure if it would end up in the cloned repo or still need setting, separately. Let me check that.... I can't easily check it as I ran another command that does do the setup after the initial clone. But I suspect it's not set after a clone with the variable set like that. |
There's another way to skin this cat provided you're all in on branchout: Use .ssh/config to configure things like this:
Then do the branchout init/clone like this:
|
git config core.sshCommand "ssh -F ~/.ssh/config-some-specific-profile-for-this-particular-project-set-on-github"
Needed on any machine operating on github repos under different identities.
The text was updated successfully, but these errors were encountered: