当我尝试使用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
时看到的内容:
$ 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.