热门课程
所有课程 >>
最新课程
AWS Amplify Console是不是需要编辑一下deploy的配置文件啊? 怎么Deploy了快一个多小时了都没成功。
第3步填充Git存储库报错 $ aws s3 cp s3://wildrydes-us-east-1/WebApplication/1_StaticWebHosting/website ./ –recursive fatal error: Unable to locate credentials
看着提示是没有找到凭据,无法执行s3 的上传。 试试看
aws configure
命令,输入正确的AK, SK,看能不能继续。
收到,已经解决了,谢谢您了。
复现了楼上迷雾同学提的这个问题,是git的。 引起该错误的原因是,目录中没有文件,空目录是不能提交上去的。
先在工作目录创建一个任意的新文件。 touch hello
先提交一个,然后就OK了。 git add hello git commit -m ‘new commit’ git push
这个实验链接后面改用Amplify来创建静态网站了,在操作的时候发现第3步填充Git存储库最后git push报错,这是怎么回事?$ git push error: src refspec refs/heads/master does not match any error: failed to push some refs to ‘https://git-codecommit.ap-northeast-1.amazonaws.com/v1/repos/wildrydes-site’
邮箱地址不会被公开。 必填项已用*标注
6个评论
AWS Amplify Console是不是需要编辑一下deploy的配置文件啊?
怎么Deploy了快一个多小时了都没成功。
第3步填充Git存储库报错
$ aws s3 cp s3://wildrydes-us-east-1/WebApplication/1_StaticWebHosting/website ./ –recursive
fatal error: Unable to locate credentials
看着提示是没有找到凭据,无法执行s3 的上传。
试试看
aws configure
命令,输入正确的AK, SK,看能不能继续。
收到,已经解决了,谢谢您了。
复现了楼上迷雾同学提的这个问题,是git的。
引起该错误的原因是,目录中没有文件,空目录是不能提交上去的。
先在工作目录创建一个任意的新文件。
touch hello
先提交一个,然后就OK了。
git add hello
git commit -m ‘new commit’
git push
这个实验链接后面改用Amplify来创建静态网站了,在操作的时候发现第3步填充Git存储库最后git push报错,这是怎么回事?$ git push
error: src refspec refs/heads/master does not match any
error: failed to push some refs to ‘https://git-codecommit.ap-northeast-1.amazonaws.com/v1/repos/wildrydes-site’