git clone 是用來從已有的 Git 倉庫克隆出一個新的鏡像倉庫到本地的绢彤。
有些時候需要帶著用戶名和密碼進(jìn)行clone
命令是
git clone http://username:password@host:/path/to/repository
//比如:
git clone http://xiaoming:1234@github.com/schacon/example.git
其中:
- "http://“是協(xié)議换况;
- username和password中你画,「@」终议、「!」等要進(jìn)行url encoding
! # $ & ' ( ) * + , / : ; = ? @ [ ]
%21 %23 %24 %26 %27 %28 %29 %2A %2B %2C %2F %3A %3B %3D %3F %40 %5B %5D
- "host:/path/to/repository”,去掉http(s):// 或者git@
ok,就醬祥山。
>>> hex(ord('!')) ‘0x21’后兩位數(shù)值和上面的表格數(shù)字一樣圃验。