1. 程式人生 > >git命令中帶有特殊符號如@

git命令中帶有特殊符號如@

http 特殊 bsp 特殊符號 use ring color tps word

使用帶用戶密碼clone的方式:
git clone https://username:[email protected]

當username和password中含有特殊符號會導致出錯,
因為為http的請求,所以需要將特殊符號encode成url格式的

java使用:

String c = java.net.URLEncoder.encode(".","utf-8");
System.out.println(c);

源文檔 <http://blog.csdn.net/qq1142003960/article/details/48323495>

git命令中帶有特殊符號如@