第一次部署服务器,服务器获取不到bitbucket上的代码


先在服务器上 ssh bitbucket.org
点yes链接一下,才能在服务器部署
或者在服务器上链接一下代码地址 git ls-remote git@bitbucket.org:xxx/xxx.git master,

原因是bitbucket不在服务器的knowhosts里

原文地址:https://www.cnblogs.com/iwangzheng/p/4820240.html