与使用 Sourcetree 推送提交冲突

问题描述 投票:0回答:1

我对 Sourcetree 有疑问。我添加了两个帐户,一个来自我的公司,第二个是我的私人帐户。使用我的业务仓库没有问题,我可以推送、拉取、克隆等。但是......我可以克隆我的私人仓库,但我无法推送更改。

Pushing to github.com:SKdaaaas/Fin.git
ERROR: Permission to SKdaaaas/Fin.git denied to KKwwdasd.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above

SKdaaaas = 我的私人 GitHub 用户名 KKwwdasd = 我的企业 GitHub 用户名

github atlassian-sourcetree
1个回答
0
投票

我的理解是 SourceTree 正在为 github.com 使用一个默认帐户。

在选项 -> 身份验证选项卡中查看 SourceTree:

您的 SourceTree 设置似乎默认使用您的企业帐户。如果这是您的选择,您可以将您的企业帐户添加为私人仓库 SKdaaaas/Fin 的合作者。

© www.soinside.com 2019 - 2024. All rights reserved.