CODING 提示: Permission denied. 没有权限操作此仓库

189 阅读1分钟

环境:sourcetree4.2.10、git、e.coding.net、mac air m1

  • 已经配置ssh公钥
  • 全局配置了github账户
  • sourcetree配置了仓库coding账户

问题:使用sourcetree配置coding的项目时,出现:CODING 提示: Permission denied. 没有权限操作此仓库

定位:1.已经设置~/.ssh/config文件为coding ssh配置 2.

解决:清理git缓存

git gc --prune=now
git remote prune origin