海滨擎蟹

git clone携带用户名和密码的方式(私人仓库取代码)

【转】直接在 url 中携带就好,与 ssh 远程登录形似。

git clone http[s]://username:password@git.coding.net/git/repo.git

tip:⚠️ url 中的用户不能为邮箱地址(因为邮箱地址中带有 @ 特殊符号)。当然作为程序员,没有什么不可能,可以将邮箱地址进行url转码后再提交。

<?php
$userame='jasonli@seasidecrab.com';
echo urlencode($userame);
?>

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »