测试服务器上,有时候需要频繁的更新GIT服务器器上的代码,每次都输入用户名和密码会比较麻烦。

在服务器上直接执行命令
// GIT全局配置
git config --global credential.helper store
执行下面命令,检查是否生效
cat ~/.gitconfig
得到结果
[credential]
helper = store
测试服务器上,有时候需要频繁的更新GIT服务器器上的代码,每次都输入用户名和密码会比较麻烦。
在服务器上直接执行命令
// GIT全局配置
git config --global credential.helper store
执行下面命令,检查是否生效
cat ~/.gitconfig
得到结果
[credential]
helper = store
本文标题:Linux 服务器上记住GIT用户名密码
本文链接:https://www.haomeiwen.com/subject/jaisdxtx.html
网友评论