当我尝试使用此命令在AWS code-commit repo上推送代码时
//错误来自第二个语句。
git add remote codecommit ssh://git-codecommit.us-east-1.amazonaws.com/Test-codecommit-repo
git push codecommit develop
它告诉我这样的错误:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
和我的〜/ .ssh / config文件如下所示:
Host git-codecommit.*.amazonaws.com
User AP***************UQ
IdentityFile ~/.ssh/codecommit_rsa
此密钥非常完美,使用此密钥访问仓库没有错误
我只想通过https访问我的repo而不是https。 我该怎么办?
答案 0 :(得分:0)
ssh://git-codecommit.us-east-1.amazonaws.com/Test-codecommit-repo
这似乎必须遵循:
ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/Test-codecommit-repo