最近用了Bonobo搭起了Git服务,弄了个批处理文件来避免每次都要输入用户名密码. 此脚本分为三个步骤:1.添加用户变量HOME:2.添加用户_netrc文件:3.添加windows普通凭据(因为VS用的是这个). 干的就两件事:添加_netrc账户和添加系统普通凭据. 此脚本会判断有无现成域,有则提示退出,高人们可以完善到自动修改现成的域,对小辈来说太复杂了,就不做了…… 脚本内容如下: @echo off :begin setx HOME %USERPROFILE% CD %USERPRO
以保存的用户名密码删除,先找到变量存在的位置: git config -l To help track down the setting, I'd try to use: git config --local credential.helper git config --global credential.helper git config --system credential.helper The first one checks the local repo config, the sec