本地向gitbucket提交代碼時出現錯誤:git
repository access denied. access via a deployment key is read-only.ssh
fatal: Could not read from remote repository.ide
Please make sure you have the correct access rightsci
and the repository exists.rem
原理Bitbucket有兩個設置SSH KEY的地方it
repository設置中的key只有read權限,這些用戶只能經過pull request的方式由owner merge代碼class
user設置中的key,只要repository中該用戶有write權限,就能夠經過ssh提交代碼原理
因此解決方式就是權限
刪除repository設置中的ssh key設置request
將ssh key添加到用戶的setting中