首页 > 解决方案 > 无法使用 Sourcetree 拉取或推送到 repo

问题描述

当我尝试使用 Sourcetree 从存储库中提取更改时出现以下错误:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
Pushing to git@bitbucket.org:doesnotmatter.git
repository access denied.
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.

我检查了 ssh 密钥在 bitbucket 和 sourcetree 中的设置是否正确。我检查了我是否可以访问存储库。

我还能检查什么?

谢谢你。

这是我跑步时看到的git remote show origin在此处输入图像描述

$ git remote show origin
* remote origin
  Fetch URL: git@bitbucket.org:doesnotmatter.git
  Push  URL: git@bitbucket.org:doesnotmatter.git
  HEAD branch: master
  Remote branches:
    GAM-478 tracked
    master  tracked
  Local branch configured for 'git pull':
    master merges with remote master
  Local ref configured for 'git push':
    master pushes to master (fast-forwardable)

这是我跑步时看到的ssh -T hg@bitbucket.org

在此处输入图像描述

oobarbazanoo@LAPTOP-CQEVT11F MINGW64 /c/Projects/WebStorm/doesnotmatter (master)
$ ssh -T git@bitbucket.org
logged in as yrslvtrfmvdoesnotmatter.

You can use git or hg to connect to Bitbucket. Shell access is disabled.

这是我运行后看到的git fetch origin:( 在此处输入图像描述 即什么都没有)。

标签: gitbitbucketcommitatlassian-sourcetreepull

解决方案


推荐阅读