git clone 自动加斜杆,找不到远程仓库
现象:
$ git clone http://www.abc.com/abc.git
fetal: ... not found 'http://www.abc.com/abc.git/'
......
仓库路径末尾平白无故多出一个’/’
百度了很久,网上答案很一致,说是此命令惹的祸
git config --global credential.helper store
可采用以下方式克隆项目
git clone http://用户名:密码@www.abc.com/abc.git
有效!但这样账号密码就会明文保存在本地仓库配置文件中,使用此命令查看克隆下来的仓库的路径
git config --local -l