git - 无法使用 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.
解决方案
推荐阅读
- html - 使用 SASS 的 "&:hover" 中的 "&" 表示什么?
- tailwind-css - 如何在 Tailwind CSS Typography 插件中将 .prose 类更改为 .Normal?
- vue.js - Vue-trix Editor setSelectedRange 不起作用 - 仅在文本开头设置光标
- node.js - 在 fetch api 中使用带有 mangodb 的节点更新数据
- html - 如何在html中将图像对齐到右上角
- r - 将 URL (href) 添加到 bs4Dash 中的 menuItem
- typescript - 如何声明一个复杂类型并将数据转换为它?
- deeplearning4j - 在 DL4J 中,有没有办法忽略训练/评分列而不删除它们,以便以后可以访问它们?
- ios - UICollectionView:有没有办法只重新加载装饰视图?
- arrays - Array.Exists 用于整数数组中的布尔比较(从字符串转换)