即使已接受邀请也无法推送到 GitHub 存储库

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

我刚刚将我的 MacBook SSD 从 128 更改为 512。是的,之前我已经备份了重要的文件夹,如 Code、Work、Documents 等。安装新的 SSD 后,所有这些重要文件夹都会复制回我的 MacBook。

然后我将所有本地 githubs 存储库加载到 SourceTree 中。到目前为止,导航分支工作正常,所以看起来很好。

不幸的是,我忘记复制

.ssh
文件夹,所以无法推送到我办公室的私人仓库。我从 GitHub 设置中删除了我的旧 SSH 密钥,放了一个新密钥,然后让我的同事将我自己从存储库中删除并再次邀请。接受邀请后,还是无法推送:

git -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/new-ui-2023:refs/heads/new-ui-2023 
Pushing to github.com:xxxxx/xxxxx_for_android.git
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Pushing to github.com:xxxxx/xxxxx_for_android.git
[email protected]: Permission denied (publickey).
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

这里有什么问题吗?

git github atlassian-sourcetree
© www.soinside.com 2019 - 2024. All rights reserved.