我没有设置任何分支权限,我也已经将公共密钥添加到BitBucket SSH设置中。
┌──[forge@app]──[~/app]
└── git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
┌──[forge@app]──[~/app]
└── git push origin master
Unauthorized
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
┌──[forge@app]──[~/app]
└──
我不断得到
未经授权 致命:无法从远程存储库读取。 请确保您具有正确的访问权限,并且存储库存在。
首先检查您的current remote URL:
cd ~/app
git remote -v
应该像[email protected]:<me>/<myproject>
然后检查输出:
ssh -Tv [email protected]
您将看到您是否被正确验证。