gitboy123 git push ‘http://****:****@git.huimei-inc.com/****/devops-java-sample.git’ –tags –ipv4 fatal: unable to access ‘http://****:****@git.huimei-inc.com/****/devops-java-sample.git/’: Could not resolve host: #@git.huimei-inc.com; Name or service not known script returned exit code 128
gitboy123 shaowenchen 最开始郁闷半天,拉取代码都ok,push代码就不行,用的同一个gitlab的凭证。 域名是OK的,问题在于传入的用户名和密码,密码有特殊字符,push的时候需要编码。 密码带有特殊字符,用的是gitlab,拉取代码的时候没有问题,push的时候就报错了。然后将密码编码了,悲剧的是这下拉取代码也不行了,后来建立了两个gitlab代码仓库的凭证,一个是不对密码做编码的,专门用来拉取代码,一个是密码编码后的凭证,专门用来push代码。坑不坑!!!!