windows下:特殊字符要轉義,如abc#要寫成abc%23
CentOS下:用雙引號括起來
方法一:
Windows下:git clone http://user:abc%23@git.com/app/app.git
CentOS下 :git clone "http://user:abc#@git.com/app/app.git"
方法二:修改.git/config文件。
Windows下:url = http://user:abc%23@git.com/app/app.git
CentOS下 :url = "http://user:abc#@git.com/app/app.git"