无法使用Sourcetree拉或推回购

时间:2018-12-12 15:04:55

标签: git bitbucket commit atlassian-sourcetree pull

当我尝试使用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.

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

我还能检查什么?

谢谢。

这是我运行git remote show origin时看到的内容: enter image description here

$ 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时看到的内容:

enter image description here

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后,我看到的是: enter image description here (即什么也没有)。

0 个答案:

没有答案