Tortoise git账号记住密码

方法一:
本地git仓库目录下,找到 .git/config ,然后打开增加:
[credential]
helper = store

这样只有该目录下的git操作不用每次输入用户名和密码,换一个目录还是需要;

方法二:
在目录:
/c/Documents and Settings/【用户名】 下找到.gitconfig文件,
编辑,增加:
[credential]
helper = store

这样任何目录的git操作只需要输入一次用户名和密码,第二次操作就不需要了;

或者.git/config修改windows,linux都适用

[remote "origin"]
    url = http://liuchao:liuchao.123@192.168.3.132:9090/r/maintance.git

猜你喜欢

转载自www.cnblogs.com/hnhycnlc888/p/11722820.html