使用帶用戶密碼clone的方式:
git clone https://username:password@remote
當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>