Linux中如何记住git密码

目的:为了方便服务器上每次git拉去都需要填写密码,而又不想用ssh密钥的

1、在终端下执行

git config --global credential.helper store

2、查看 ~/.gitconfig文件,会多了一项:

[credential]
helper = store

 

posted on 2020-11-29 22:54  lhicp  阅读(465)  评论(1编辑  收藏  举报