How to configure a different git url? #138
Unanswered
ComradeMoustache
asked this question in
Problems
Replies: 1 comment
-
There's a command to edit the remote urls. Just replace the url with the correct one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I was wondering how I could prevent obsidian git from using the default github url ("[email protected]") when doing automatic backups?
I have multiple accounts set up on my computer, due to work, and I have my
~/.ssh/config
set as below:This means that when I clone my repo I can chose which host to use by specifying either
git clone git@github-personal:denolehov/obsidian-git.git
to use the ssh key of my personal account orgit clone [email protected]:denolehov/obsidian-git.git
to use my work account ssh key.I can see that obsidian tries to use
[email protected]
as default which returnsPermission denied (publickey)
whenever it tries to automatically update. I'd like to change that behavior so that it callsgit@github-personal
, is this possible?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions