git地址带上密码,不用每次提交都输入密码

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"

原文地址:https://www.cnblogs.com/zhangmy/p/8719572.html