You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possibility of cloning, fetching and pushing with multiple accounts.
Current behavior
When cloning with one of the accounts it shows that repository not found:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
failed to run git: exit status 128
Relevant log output
- `.gitconfig` already have the credentials:
[credential "https://github.com"]
helper =
helper = op plugin run -- gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = op plugin run -- gh auth git-credential
Plugin is correctly configured inside folder .op/plugins/gh.config
GitHub CLI
Configured Aliases
✔ Alias for "gh" configured
✔ Aliases sourced (/home/thomaz/.config/op/plugins.sh)
Configured Credentials
✔ Configured for directory "/home/thomaz/repos/born":
CREDENTIAL TYPE ITEM VAULT
GitHub Personal Access Token Github Born Token Born
~/.ssh/config is configured according to documentation:
Host *
IdentityAgent ~/.1password/agent.sock
# Personal GitHub
Host tnex
HostName github.com
User git
IdentityFile ~/.ssh/tnex.pub
IdentitiesOnly yes
# Work GitHub
Host born
HostName github.com
User git
IdentityFile ~/.ssh/born.pub
IdentitiesOnly yes
256 SHA256:... Tnex (ED25519)
256 SHA256:... Github Born (ED25519)
Cloning on my personal account work fine as expected, the issue is with the Work account, also I have this same config in another computer and it work flawlessly! Any help will be appreciated as I already tried "everything".
### op CLI version
2.30.0
The text was updated successfully, but these errors were encountered:
Platform or tool
Github
Desired or expected behavior
Possibility of cloning, fetching and pushing with multiple accounts.
Current behavior
When cloning with one of the accounts it shows that
repository not found
:Relevant log output
.op/plugins/gh.config
gh auth status
return the correct account:op plugin inspect gh
seems correct:~/.ssh/config
is configured according to documentation:ssh-add -l
correctly shows my keys:The text was updated successfully, but these errors were encountered: