Hi everybody
I have 2 Github accounts I want to connect to Sourcetree.
- One is my personnal free Github account
- One is an enterprise Github account
I so have added this two accounts in Sourcetree connecting with token (enterprise) and password (personnal) - this works fine.
But when I want to clone a repository, I need to "set as default" the user that owns the repo even if the full https repo address has been set (the one with username).
Is there another way to do that because I don't want to switch everytime I change the Github server target ?
Hope I'm clear
Thanks
BDW
Sourcetree needs to know which account you want to connect with, so no, there's no way to avoid telling it.
But I thought the repo was storing the credentials that Sourcetree would use.
What about the "Repo Settings" to set Remote repository paths :
While editing the origin remote (e.g.) we can set url/path of the repo and the remote account to use
Why is it not working if the current account is not the default account ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It does, but you still need to tell it which one you want to use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid it's the same answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nic Brough -Adaptavist- When I use "ssh -T git@github.com" to know which account I connect with Github, it always point to the other one that I don't want to connect with. I want to commit the code to the right account. It always shows "ERROR: Permission to {Account1}/Repo.git denied to {Account2}. How can I connect to the Account1?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.